|
|
|
|
|
by Hackbraten
1508 days ago
|
|
Your second link briefly got my hopes up that I’d finally be able to learn a little about Redux today. Nope, the tutorial tells me I better get good first in: > React terminology: JSX, State, Function Components, Props, and Hooks Does that imply you can’t use Redux without React at all?
Or does it just use part of React’s concepts? I’d totally love to learn to manage my application state better. Do I really have to pull React in with that?
I use vanilla JS as much as I can because I want my apps to have a decent chance to still be working a decade from now. |
|
However, in practice, probably 90-95% of Redux users _do_ use it with React. So, yes, all of our tutorials are written under the assumption that you are using it with React.
Additionally, we see lots of people trying to learn Redux too early in their journey. It's bad enough that bootcamps throw people through "4 weeks of JS, 4 weeks of React, 4 weeks of Redux, GO!", and we can't do anything to stop that. We do want people to learn Redux, but we've found that it's best if most people are already comfortable with JS and a UI framework (which, again, is normally React), before they try to dive into Redux. That way there's fewer new terms and concepts to learn at once, and it's more clear what benefits Redux can add and how it fits into the UI layer.
If you'd like to focus on just the Redux core concepts, I'd recommend going through our "Redux Fundamentals" tutorial. It explains the underlying principles and techniques, and how Redux works:
https://redux.js.org/tutorials/fundamentals/part-1-overview
There is content in the middle of that tutorial that explains how to use it with React, and if you want to use it with vanilla JS you'll have to recreate equivalents to some of those APIs yourself. But, the rest of the material should be directly relevant.
Also, please come by the Reactiflux Discord and ping us over in the #redux channel - we're happy to help answer questions!