You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
action -> "abstraction": do some more fancy stuff here before calling store.dispatch here instead of inside a component’s custom methods (note: store.dispatch instead of this.props.dispatch)
reducer -> update state
combineReducers -> combine different reducers into one state container in index.js when you import rootReducer from '../reducers' in files in /store folder
component action connected to state container -> this.props.dispatch action on state (instead of store.dispatch), which works once you use import { connect } from 'react-redux'
functionmapStateToProps(state){return{data: state.data}}exportdefaultconnect(mapStateToProps)(Jexcel)// connect component to state
non-critical extras:
constants/actionTypes -> “enum” to label actions meaningfully
prop-types -> type checking of state data to be stored
You can get a dependency graph of this project by running bash show_dep_graph.sh.
This project was generated with Create Redux App. Refer to docs/create-redux-app to find more information on how to perform common tasks.
Once the installation is done, you can run some commands inside the project folder:
npm start or yarn start
Runs the app in development mode.
Open https://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will see the build errors and lint warnings in the console.
npm test or yarn test
Runs the test watcher in an interactive mode.
By default, runs tests related to files changes since the last commit.