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
Map is not a function? Props are either named incorrectly or not getting passed down properly.
Keep in mind props (for ui component) vs this.props (stateful component)
Did you bind your function?
To access value on forms without keeping track of it on state, we can use event.target.property.value
When you're doing a map, remember to return inside the map, and remember to set a key!
React-Redux Implementation Checklist
Main elements
Make a store (takes a reducer / middleware)
Hook up Provider within browser/index.js
Create constants, action creators, and reducers in redux folder (also create async actions if using thunk)
If using react-redux, use mapState, mapDispatch, and connect() to supply all components with state. If using react and redux separately, make sure each component is subscribing and unsubscribing from the store
Other considerations
Use react-router, replace <a href></a> with <Link to={}></Link>