Displaying 1 to 5 from 5 results


Easily add additional query string parameters to HTML anchor elements.

electron-serve - Static file serving for Electron apps

Normally you would just use win.loadURL('file://…'), but that doesn't work when you're making a single-page web app, which most Electron apps are today, as history.pushState()'ed URLs don't exist on disk. It serves files if they exist, and falls back to index.html if not, which means you can use router modules like react-router, vue-router, etc.The directory to serve, relative to the app root directory.

react-router-util - Useful components and utilities for working with React Router

A history singleton that you can use in <Router history={history}> to access the history from outside the router. Can be useful for programmatically navigating to a route when used in combination with non-React code, like Electron IPC events, etc.Same as the official <BrowserRouter>, but with history={history} set to the above history singleton, so you can just import the singleton to access the router history object from outside the router.