Example-setup using react, redux and other common libraries from the react-ecosystem.
This project is created using yarn
, but could easily be converted to use npm
.
Scripts;
yarn start // Starts the application
yarn start:mock // Starts the application with fetch-mocking enabled
yarn build // Builds the application
yarn start:mock // Builds the application with fetch-mocking enabled
yarn test // Run tests
Library | Why |
---|---|
react | Self-explanatory |
redux | Self-explanatory |
react-redux | Connecting redux to react |
redux-thunk | Allowing async-actions in redux |
reselect | Creating memoized-selectors |
react-intl | React-components for I18n |
react-router | Routing in the browser |
react-loadable | Codesplitting. Not necessary for small apps |
yet-another-fetch-mock is included for even better DX. Enables running the application completely offline, and even deploying each PR to github for easier verification.
react-intl-bundler allows us to separate text resources into separate files,
and gives use a "type-safe" bundle which is ready to be consumed by react-intl
.
Built using create-react-app-typescript
, see original readme