Commit Graph

115 Commits

Author SHA1 Message Date
Tim Dorr
d18a977260 Switch out non-ASCII quotes for ASCII versions. (#1874) 2016-08-01 16:45:58 -04:00
Jan Henrik Øverland
8636df83a6 Update ExampleTodoList.md (#1852)
Calling todo(undefined, action) does not work without the default state value.
2016-07-18 23:53:18 -04:00
Sia
a2bc53885e Directs to babel-plugin-transform-object-assign instead
babel-plugin-object-assign is deprecated
2016-06-28 12:49:04 -05:00
Zhe Zhang
24049cb9d3 update links 2016-06-05 23:06:38 +08:00
Dylan Companjen
f55323d24b Update to reflect the code from the examples overview (#1717) 2016-05-11 20:02:17 +01:00
Peter Jang
42c6ed7766 Change doc examples to use TOGGLE_TODO action consistently (#1690) 2016-05-03 16:29:05 +01:00
Josh Kelley
ddc883cbbb Add shouldComponentUpdate note to UsageWithReact (#1524)
* Add shouldComponentUpdate note to UsageWithReact

* Revise wording

* Fix punctuation
2016-04-21 21:56:31 +01:00
Dan Abramov
24ab45f2ac Clarify the wording 2016-04-14 21:47:44 +01:00
Laszlo Megyer
95496d0d29 Actions.md: swapped the order of flux and redux examples. Redux comes first. (#1615)
As a casual reader the flux example might be confusing.
This is a Redux document, why not jump to the best part first?
2016-04-14 21:46:30 +01:00
Stenver
23efb53979 Add a note that action creators do not have to be pure (#1590)
* Add a note that action creators do not have to be pure

As a result of this PR:
https://github.com/reactjs/redux/pull/1589#issuecomment-206778709

I understood that some of my understanding about Action Creators were
false. This PR aims to make the fact that action creators are the places
where to make API calls more explicit and clearer for future
readers.

* Add note to finish basic tutorial before heading to advanced tutorial
2016-04-11 20:40:48 +01:00
Omer Zach
9eb653419b Fix grammar error in Reducers.md 2016-04-06 21:06:28 -07:00
dlunny
fa0b2d28db Fixes a documentation typo in basics/Reducers
()=>{  } changed to (() => {  })
2016-03-07 12:08:19 -05:00
just-boris
22d86fe70f docs: add whitespace after if according code style 2016-03-04 22:09:10 +03:00
just-boris
0dd240eb60 docs: fix surrounding text after changes in #1477 2016-03-04 22:02:22 +03:00
just-boris
4f06bfda6e docs: replace slice calls to map 2016-03-04 20:08:25 +03:00
Frezc
d2715f669e initialState is necessary in ruducer 2016-02-29 11:30:36 +08:00
Dan Abramov
9492f24e64 Move object spread docs around 2016-02-19 19:17:26 +00:00
Tony Spiro
563d7c208b submit form ToDo examples and docs 2016-02-15 14:59:41 -06:00
Dan Abramov
24d9c4ddcd rackt -> reactjs (see #1392) 2016-02-12 18:02:16 +00:00
benny856694
d4e0fb7b0c Update ExampleTodoList.md 2016-02-11 21:40:48 +08:00
Dan Abramov
3c2c1832d0 No need for linebreaks here 2016-02-02 20:55:36 +00:00
Dan Abramov
48bed5c2bc Use default exports for reducers 2016-02-02 20:51:35 +00:00
Dan
69f0bd463b Update ExampleTodoList.md
Update todoStore to store.
2016-01-31 12:25:11 -05:00
Dan
3c2fc1dc50 Update UsageWithReact.md
Update todoStore to store.
2016-01-31 12:00:59 -05:00
Mark Pedrotti
bde389bc1d lint changes: double to single quotes, remove semicolons and unreferenced React 2016-01-27 18:04:28 -05:00
Mark Pedrotti
c0109cb03d getVisibleTodos on one line from Usage 2016-01-27 13:57:37 -05:00
Mark Pedrotti
f64eeb1ee2 Merge branch '___react-docs-update' of https://github.com/rackt/redux into ___react-docs-update 2016-01-27 13:52:30 -05:00
Mark Pedrotti
d278680ca2 make Example consistent with Usage 2016-01-27 13:52:14 -05:00
Dan Abramov
a12fa1721c Update UsageWithReact.md 2016-01-27 01:35:50 +00:00
Dan Abramov
3c965858e6 Update UsageWithReact.md 2016-01-27 01:32:29 +00:00
Dan Abramov
6b0b72e629 Update UsageWithReact.md 2016-01-26 21:51:23 +00:00
Dan Abramov
1494a7b144 Merge remote-tracking branch 'urbanvikingr/master' into ___react-docs-update 2016-01-25 19:16:54 +00:00
Dan Jensen
10551a1e1e update Usage with React doc 2016-01-17 15:54:16 -05:00
Dan Jensen
4db5cdbf4e update doc 2016-01-17 15:23:25 -05:00
Dan Abramov
b35c1c9543 Update Store.md 2015-12-31 20:45:01 +00:00
Jason Rogers
f6e29040d8 Adds documentation about unsubscribing store listeners to Store.md 2015-12-31 13:35:27 -05:00
Dan Jensen
ed2617192e update documentation 2015-12-30 23:24:39 -05:00
Dan Jensen
c7e8e45d59 update documentation 2015-12-29 16:00:12 -05:00
Dan Jensen
6d37efbb8a update code samples 2015-12-29 12:33:06 -05:00
Arjun Balaji
01dc17e082 Fix id-related bug in example ToDo app and update README 2015-12-12 20:03:06 -05:00
Dan Abramov
b0763b126b Clarify action creators don't need to be pure 2015-12-04 15:49:50 +00:00
Manish Jethani
09eaf64149 Make visibleTodos a required property
Since TodoList's todos property is required, visibleTodos should be
required too.
2015-11-30 09:37:32 +05:30
Tom Brown
7342f56c8d Remove whitespace in docs 2015-11-27 18:51:34 -08:00
Johannes
458b62c761 Use Object.assign also for updating state.todos
The current example throws a syntax error (unexpected token). Not sure if we can even use ... syntax in object literals? Maybe this example just got never checked. But please let me know if I'm wrong.
2015-11-24 16:17:55 +01:00
Cam Song
d25a40cbbc rename smart/dumb to presentational/container 2015-11-14 11:27:44 +08:00
Mark Finger
4168c380b1 Grammar and flow improvements in some of the intro and basic docs 2015-11-06 13:28:47 +11:00
Lee Bannard
473ff39b0b Remove semi-colon from Reducers.md example 2015-10-30 21:13:38 +00:00
Payton Swick
90ef233b6e Add missing reducer composition example to docs
The code for the first implementation of `todos` as an example of reducer composition is actually the same as the previous example, causing the following paragraph ("This is called *reducer composition*, and it’s the fundamental pattern of building Redux apps") to make no sense. 

This change adds the `todos` function from the following example to make this one more clear.

There are other ways the composition could be done, certainly, and I'm not sure that the one I chose is the most iconic, so feel free to suggest alternatives. :-)
2015-10-30 16:21:48 -04:00
Lee Bannard
b3c8f8d114 Merge branch 'master' into rackt-eslint-config 2015-10-29 07:35:25 +00:00
Kevin Lau
a6b3a49ffd Match code snippet 'name' field to corresponding name in the description. 2015-10-28 14:54:53 -07:00