Join Richard Gill for an in-depth discussion in this video Creating a new post using Redux, part of Performing Complex State Management with Redux.
- [Instructor] Creating a New Post Using Redux;…in this video, we're gonna have a look at how we…can use inputs with Redux, to store the currently editing…post in our Redux state, so we've just loaded in the post…from Firebase, into Redux state, and then we put that…on the screen, and it was all pretty straightforward,…so now, what we're gonna have a look at, is perhaps,…how we can AddPost using Redux, so the code for that,…really, is with this AddPost component, here.…So we're doing a couple of things, we're saying…onAdd, and we go and grab some data, and then we also…push it; let's just have a look inside the AddPost…component, itself, so this component has some state,…so we're saving the input information in here,…okay, so that's interesting, so this component's stateful,…because we called this .setState, and this .state,…and really, what happens with Redux as you Redux things,…you're gonna get rid of stateful components in most places;…not in all cases, and that's a very advanced topic,…when do you not use Redux?…
Note: This course was created by Packt Publishing.
- What is Redux?
- Connecting your components to the store
- Firing actions
- Applying Redux reducer
- Using advanced reducers
- Dispatching asynchronous actions with Thunk
- Building a workable application