Commit Graph

151 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
Diego
8807ac9408 Removed extra comma in package.json example 2016-07-28 11:58:19 -07:00
C. T. Lin
728432c705 Added missing IsolatingSubapps links to README (#1854) 2016-07-18 23:52:58 -04:00
Tyler Paul Thompson
994a79eb38 Create IsolatingSubapps.md (#1750)
* Create IsolatingSubapps.md

This is mostly derived from https://gist.github.com/gaearon/eeee2f619620ab7b55673a4ee2bf8400#file-subapp-index-js-L6 with a few edits that I hope are useful :)

* Update IsolatingSubapps.md

Add title and missing backticks; move final example closer to explanation for clarity

* Smart quotes

* More smart quotes

* You get a smart quote! And you get a smart quote!!

* Use more consistent component names

* Change subapps to sub-apps

* Also change title to Sub-Apps

* unified web products -> typical web apps
2016-07-10 13:35:53 -04:00
Tyler Collier
0d4315ffea Update doc to use test with Enzyme (#1692) 2016-06-26 19:39:53 -04:00
Albert Arvidsson
ae866e34ef Correct first argument name into mapStateToProps
Having it named mapDispatchToProps can be confusing, since connect takes
a mapStateToProps function as first argument.
2016-06-14 11:01:51 +02:00
David Livingston
b523aa4ae5 Issue 1743 (#1770)
* rename createStore param `initialState` to `preloadedState`

* rename configureStore param `initialState` to `preloadedState`

* rename `window.__INITIAL_STATE__` in examples and docs

rename window.__INITIAL_STATE__ to window.__PRELOADED_STATE__
2016-05-27 20:50:45 +01:00
Sam Umbach
c90684f53a Fix minor typo in Reducing Boilerplate (#1777) 2016-05-27 20:50:14 +01:00
Evgeny Samsonov
dcaa0c626f Docs: remove semicolons according code style (#1763) 2016-05-23 18:22:55 +01:00
spmiller
62fc713ba9 Add extra required babel configuration step
I had to add a .babelrc change to get the default examples to work, as described here:
http://jamesknelson.com/testing-in-es6-with-mocha-and-babel-6/
2016-05-16 10:29:53 +12:00
Tomy Jaya
ce6e2d6cca Update WritingTests.md
Just fixed a sentence error.
2016-05-04 13:46:37 +08:00
Luqmaan Dawoodjee
a04013e99a Update ComputingDerivedData.md (#1666)
Fix typo
2016-04-26 00:04:10 +01:00
Naomi
eabd693b6c Simpler with mocha's built-in promise support 2016-04-01 17:12:32 +01:00
Max Stoiber
445183a1ad Merge pull request #1516 from ellbee/update_computing_derived_data
Update ComputingDerivedData.md
2016-03-29 09:58:46 +11:00
Ro Savage
e57bf274c1 Update docs - Writing tests - Async actions 2016-03-28 14:30:26 +13:00
Lee Bannard
a982b6faf9 Update ComputingDerivedData.md 2016-03-14 20:28:58 +00:00
Arnaud Benard
74b1188dab update redux-mock-store documentation 2016-03-11 14:58:40 +01:00
Igor Santos
4ca239f19a setState + shallow rendering are now working fine
Updating docs regarding React updates on Shallow Rendering: https://github.com/facebook/react/issues/4019#issuecomment-172470697
2016-03-01 02:29:42 -03:00
Paul Kögel
6f7e08344f docs/recipes/UsingObjectSpreadOperator: tenants != tenets :) 2016-02-19 23:57:31 +01:00
Ryan Grove
ab33531885 Fix typo: "read-spread" -> "rest-spread" 2016-02-19 11:34:13 -08:00
Dan Abramov
9492f24e64 Move object spread docs around 2016-02-19 19:17:26 +00:00
Dan Abramov
6946bdf84d Update WritingTests.md 2016-02-19 13:48:32 +00:00
Neil Kistner
7a2507ff92 Update Writing Tests documentation to Babel 6 package 2016-02-19 07:45:01 -06:00
João Moreno
ae9a966ef9 fix client side example 2016-02-17 23:29:37 +01:00
Shergin Rodion
c408ac0879 Mistake in ComputingDerivedData docs
On line 70 probably was meant visibilityFilter
2016-02-15 13:39:12 +03:00
Dan Abramov
24d9c4ddcd rackt -> reactjs (see #1392) 2016-02-12 18:02:16 +00:00
Sven Anders Robbestad
a23f5ec607 Update ServerRendering.md 2016-02-03 13:59:34 +01:00
Sven Anders Robbestad
a2235ec3d8 Update ServerRendering.md
Always use radix when using parseInt. Other options are Number or isNaN, or maybe even better, the ES6 specific Number.isNaN() - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN.
2016-02-03 13:17:07 +01:00
Dan Abramov
dbd3b486b8 Update ComputingDerivedData.md 2016-02-02 21:47:43 +00:00
Dan Abramov
e04c587109 Merge pull request #1295 from jakegardner/jg-computing-derived-data
Update ComputingDerivedData.md [WIP]
2016-02-02 21:39:43 +00:00
Dan Abramov
40810c075e Update todos, todos-with-undos, and Undo recipe to match each other 2016-02-02 21:33:17 +00:00
Daniel Bugl
cdb296c69c Remove extra backtick in ImplementingUndoHistory.md 2016-01-31 17:19:41 +01:00
Dan Abramov
80c7643969 Merge pull request #1308 from coryhouse/patch-4
Grammar fix
2016-01-29 16:22:01 +00:00
Cory House
7fe001c80e Grammar tweaks 2016-01-29 08:03:46 -06:00
Cory House
36bc195c34 Grammar fix 2016-01-29 07:36:54 -06:00
Jake Gardner
8d15d7abb0 Merge suggested changes 2016-01-29 14:01:40 +08:00
Jake Gardner
5ccf18b0e1 Update ComputingDerivedData.md 2016-01-28 13:56:07 +08:00
Danilo Figueiredo
5691c0bf82 Point link to Glossary markdown instead of html 2016-01-26 14:43:53 +00:00
Keith Yong
f44de0d4c2 Update ServerRendering.md
Change

`document.getElementById('root')`

to 

`document.getElementById('root')`

to match the earlier

`<div id="root">${html}</div>`
2016-01-21 21:47:49 -05:00
aequanimitas
8ef7d2a6d6 Match target element ID in server-rendered and client
- change id to 'root'
2016-01-12 14:23:55 +08:00
C. T. Lin
2c69ff2c2b replace redux-action-utils (deprecated) with redux-act
'insin/redux-action-utils' has been deprecated, so should be removed from the document.
2015-12-23 20:41:28 +08:00
Timur Meyster
dab19a05a9 Remove defined but not used imported libraries
-Since expect is being used inside of the 'redux-mock-store', there is no longer a need to import expect in this example 
-The same is applicable to 'applyMiddleware', because it's being imported in the 'redux-mock-store'
2015-12-15 17:02:59 -08:00
Timur Meyster
c6c4359ef0 Fix nock response to return a body
-The thunk action 'fetchTodos' resolves the promise and then passes json.body to the fetchTodosSuccess. 
-The bug was returning 'undefined' for json.body because the mock response was not returning a body
2015-12-15 12:16:18 -08:00
Dan Abramov
02ed21cd27 Remove redux-mock-store implementation so we don't have to maintain it 2015-12-12 18:45:03 +00:00
Manish Jethani
40afcf688e Don't use the object spread operator in middleware 2015-12-06 22:55:16 +05:30
Manish Jethani
6fc98b04a9 Remove trailing whitespace 2015-12-06 05:41:35 +05:30
Manish Jethani
9547056465 Use ES6 syntax and the object spread operator 2015-12-06 05:40:58 +05:30
cyrilf
94015527cc Stay consistent for shouldCallAPI method
Regarding the previous examples, I think that `shouldCallAPI` method isn't consistent.

```
if (posts[userId]) {
// There is cached data! Don't do anything.
    return
}
```

was translated to:

`shouldCallAPI: (state) => !state.users[userId]`

I think it's `shouldCallAPI: (state) => !state.posts[userId]`
2015-11-30 00:14:06 +01:00
Cam Song
d25a40cbbc rename smart/dumb to presentational/container 2015-11-14 11:27:44 +08:00
ambar
9201776d98 Fix typo 2015-11-13 21:57:58 +08:00