A minimal boilerplate to reactive programming using react.js
, redux
, react-router
,redux-observable (RxJs)
, Typescript
. Implementing : (action, epic, selectors and reducers)
- npm install
This setup is fairly straight forward for those who are aware of RxJs and React - Redux. Also for those who dont know RxJs but familiar with React - Redux, going through Rxjs and redux-observable documentations (for brief understanding) should make you comfortable. But for those who are not aware of either of those, then I think its better if you can grasp some knowledge of React - Redux and RxJs first.
- demonstration of React-Router implementing Authentication using Protected routes
- demonstration of React - Redux and redux-observable - "Action, Epic, Selector, Reducer" through Authentication example
- React.js (16.8.4)
- React-Router (4.3.1)
- Redux (4.0.1)
- React-redux (6.0.1)
- redux-observable (1.0.0)
- RxJs (6.4.0)
- Typescript (3.3.3)
- Scss
- Webpack (4.20.2)
- Jest
- Enzyme + Sinon
Using Jest by facebook, as it's popular among React.js community, also because it is easy, well documented and does the job!
Use npm test
or npm t
to run example test.
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
build.js (264 KiB)
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
main (264 KiB)
build.js
style.css
WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/