I have a YouTube video where I go into more detail. I explain the reducer function in greater depth there as well.
What is it?
The ...
For further actions, you may consider blocking this person and/or reporting abuse
i call it mini version of redux.
So can I ditch redux and use this stuff alone?
Good question. Redux is great for combining multiple reducers. (and combining all the dispatched actions to work together). It's also good for injecting middleware for developer tools and performing asynchronous tasks (fetch data, etc..) inside actions. I might have to add an edit to the blog π€π.
What others do I need I hear of thunk redux and such.but I don't know much about it. I've used context API alone
I see other stuff like redux thunk. Can you advise me on everything I need for redux. I'll have 100 code days in Frontend (react and Firebase)
.
@reactifystudio it can be used in small medium size projects but for large application its difficult to manage.
Okay thanks. And which other tools you use in React?.
That's how I think of it π
Is there any naming convention for components with useDispatch from react-redux?
const dispatch = useDispatch()
and
const [state, dispatch] = useReducer(reducer, initialState)
Hey man, greats tutorial π
Thanks! π
Nice tutorial, thanks! I'm gonna implement it in my projects
My pleasure! Awesome to hear!
I could see that. Good call
Very good post, thank you.
Thank you π
Great article! Hooks are the best thing since functional components in React!
Thanks! Agreed!
Thanks! Clear and concise, just what I needed.
Thanks! π
Greatt, i like this article
Awesome!!! Thanks. I enjoyed the video so much that I coded each line and then went ahead to build an express API server to fetch random quotes off a mongoDb database running on my laptop.
That's so awesome to hear!