You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated index links to do an anchor action. The <a> Tag was empty and would not work. Links (###) also work with a "slugify" version of your destiny titles.
Copy file name to clipboardExpand all lines: docs/faq/General.md
+4-8Lines changed: 4 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,14 @@
2
2
3
3
## Table of Contents
4
4
5
-
-[When should I learn Redux?](#general-when-to-learn)
6
-
-[When should I use Redux?](#general-when-to-use)
7
-
-[Can Redux only be used with React?](#general-only-react)
8
-
-[Do I need to have a particular build tool to use Redux?](#general-build-tools)
5
+
-[When should I learn Redux?](#when-should-i-learn-redux)
6
+
-[When should I use Redux?](#when-should-i-use-redux)
7
+
-[Can Redux only be used with React?](#can-redux-only-be-used-with-react)
8
+
-[Do I need to have a particular build tool to use Redux?](#do-i-need-to-have-a-particular-build-tool-to-use-redux)
9
9
10
10
11
11
## General
12
12
13
-
<aid="general-when-to-learn"></a>
14
13
### When should I learn Redux?
15
14
16
15
What to learn can be an overwhelming question for a JavaScript developer. It helps to narrow the range of options by learning one thing at a time and focusing on problems you find in your work. Redux is a pattern for managing application state. If you do not have problems with state management, you might find the benefits of Redux harder to understand. Some UI libraries (like React) have their own state management system. If you are using one of these libraries, especially if you are just learning to use them, we encourage you to learn the capabilities of that built-in system first. It might be all you need to build your application. If your application becomes so complex that you are confused about where state is stored or how state changes, then it is a good time to learn Redux. Experiencing the complexity that Redux seeks to abstract is the best preparation for effectively applying that abstraction to your work.
@@ -33,7 +32,6 @@ What to learn can be an overwhelming question for a JavaScript developer. It hel
33
32
-[Twitter: This was my experience with Redux...](https://twitter.com/garetmckinley/status/901500556568645634)
34
33
-[Dev.to: When is it time to use Redux?](https://dev.to/dan_abramov/comment/1n2k)
35
34
36
-
<aid="general-when-to-use"></a>
37
35
### When should I use Redux?
38
36
39
37
The need to use Redux should not be taken for granted.
@@ -81,13 +79,11 @@ In the end, Redux is just a tool. It's a great tool, and there are some great r
81
79
-[Twitter: Redux is a platform for developers to build customized state management with reusable things](https://twitter.com/acemarke/status/793862722253447168)
82
80
83
81
84
-
<aid="general-only-react"></a>
85
82
### Can Redux only be used with React?
86
83
87
84
Redux can be used as a data store for any UI layer. The most common usage is with React and React Native, but there are bindings available for Angular, Angular 2, Vue, Mithril, and more. Redux simply provides a subscription mechanism which can be used by any other code. That said, it is most useful when combined with a declarative view implementation that can infer the UI updates from the state changes, such as React or one of the similar libraries available.
88
85
89
86
90
-
<aid="general-build-tools"></a>
91
87
### Do I need to have a particular build tool to use Redux?
92
88
93
89
Redux is originally written in ES6 and transpiled for production into ES5 with Webpack and Babel. You should be able to use it regardless of your JavaScript build process. Redux also offers a UMD build that can be used directly without any build process at all. The [counter-vanilla](https://github.com/reduxjs/redux/tree/master/examples/counter-vanilla) example demonstrates basic ES5 usage with Redux included as a `<script>` tag. As the relevant pull request says:
0 commit comments