This project is an experiment that builds a reasonably complex React/Redux application which manages a grid of data, including doing simple calculations using MathJS.
The application can be used here:
https://dfbaskin.github.io/redux-web-worker-example/
Three versions of the application are provided.
-
Version One - all processing is on the UI thread (no web worker is used).
-
Version Two - the entire Redux store is on a worker thread and Reselect selectors are used to move data from the web worker as needed.
-
Version Three - uses the redux-in-worker package to manage the redux store (this version provided by Daishi Kato).
- https://dassur.ma/things/react-redux-comlink/ - the initial inspiration for this project.
- https://github.com/GoogleChromeLabs/comlink - Comlink, to communicate with web workers.
- https://reactjs.org/docs/getting-started.html - React, for the web application itself.
- https://redux.js.org/introduction/getting-started - Redux, for managing application state.
- https://github.com/reduxjs/reselect - Reselect, for selecting state.
- https://github.com/immerjs/immer - Immer, for working with immutable state.
- https://mathjs.org/ - MathJS, math library for JavaScript.