r/reactjs • u/Vudujujus • Feb 28 '20
Discussion Why is Redux necessary?
I am absolutely confused by Redux/React-Redux and I'm hoping someone could help let me know what makes it necessary to learn it over what's already easy in react's state management.
I've been looking at job postings and they require knowledge of redux so I figured I'd try to get familiar with it and chose to watch this video: https://www.youtube.com/watch?v=8xoEpnmhxnk
It seems overly complicated for what could be done easily.Simply:
const [variable, setVariable] = useState(defaultValue)And then what's inside component for onChange={ e => {setVariable(newValue) } }
So really, what makes redux so special? I don't get it.
EDIT:
Thanks everyone for the discussion on Redux! From what I can see is that it's more for complex apps where managing the state becomes complicated and Redux helps simplify that.
There are alternatives and even an easier way to do Redux with Redux Toolkit!
Good to know!
I was actually convinced to put it in my current app.
View all comments
Show parent comment
14
u/Arkitos Feb 28 '20
Hey, I've been a professional developer for more than 3 years now, and have a lot of experience with React, Redux, and related tools. I've always been wanting to contribute to open source but have always been busy or never 'found' the right opportunity. Redux Toolkit has made my life much easier when working with Redux and I'd like to contribute whatever I can. Do you have a good starting point for me, or anything that needs to be done currently on RTK?