nutgaard / redux-app

example setup of typescript + redux + redux-thunk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redux-app

Example-setup using react, redux and other common libraries from the react-ecosystem.

npm/yarn scripts

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

Libraries

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

Utility libraries

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.

Tools

Built using create-react-app-typescript, see original readme

About

example setup of typescript + redux + redux-thunk


Languages

Language:TypeScript 85.2%Language:HTML 7.5%Language:CSS 7.3%