From the course: React: State Management (2019)
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
You don't need Redux - React.js Tutorial
From the course: React: State Management (2019)
You don't need Redux
- [Instructor] Back on 2015, when the Flux architecture and Redux was still new, Dan Abramov, the creator of Redux wrote this. "It is in React's spirit to constantly question the dogma, "and we must be careful not to introduce a dogma of our own. "As a community, we need to teach the beginners "to keep their eyes wide open "so that they can recognize it "when something better than Flux comes along." At the time, Flux and eventually Redux, was seen as the way to deal with state management, and that attitude hasn't really gone away since then. This idea that there's only one way to do things is dangerous. It means that you're not evaluating the trade-offs of using an alternative system, and worse, you might be introducing extra complexity into your app when you don't need it. Let's take a look at our book application. It's possible to handle all of our state changes using React alone. We don't actually need Redux. It's tempting to think about adding it for things like data fetching…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.