Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.08 KB

front_docs.md

File metadata and controls

31 lines (23 loc) · 1.08 KB
  1. use styled-components to enhance CSS for styling React component

It turns css into js files and makes maintenance a lot easier. So we don't have to hunt across different files to find the styling affecting a specific component.

npm install styled-components

styled-components/styled-components

  1. use redux to manage data and components
npm install redux

redux

  1. use React-Redux React Redux is the official React binding for Redux. It lets your React components read data from a Redux store, and dispatch actions to the store to update data.
npm install react-redux

react-redux

  1. use redux-thunk as the middleware for Redux Thunks are the recommended middleware for basic Redux side effects logic, including complex synchronous logic that needs access to the store, and simple async logic like AJAX requests.
npm install redux-thunk

redux-thunk