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
Copy file name to clipboardExpand all lines: README.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ Really cool starter boilerplate with the most popular technologies:
37
37
-[Babel](https://babeljs.io) for transpile ES6+ to ES5.
38
38
-[React Hot Loader](https://github.com/gaearon/react-hot-loader) to tweak React components in real time.
39
39
-[nodemon](https://nodemon.io) to monitor for any changes in your Node.js application and automatically restart the server.
40
-
-[axios](https://github.com/mzabriskie/axios) as the Promise-based HTTP client for the browser and Node.js.
40
+
-[axios](https://github.com/axios/axios) as the Promise-based HTTP client for the browser and Node.js.
41
41
-[redux-thunk](https://github.com/gaearon/redux-thunk) as the middleware to deal with asynchronous action.
42
42
-[react-helmet](https://github.com/nfl/react-helmet) to manage title, meta, styles and scripts tags on both server and client.
43
43
-[loadable-component](https://github.com/smooth-code/loadable-components) to lazy load component when needed in app. Reduce your bundle size without stress.
@@ -226,7 +226,7 @@ export default [
226
226
227
227
### Data Fetching from Server-side
228
228
229
-
Just write Redux actions and stores as normal (read the [Redux](https://redux.js.org) document if you are new). The starter using [axios](https://github.com/mzabriskie/axios) as the data fetcher, it's quite simple and easy to use. If the action creator is asynchronous then it will return a Promise (or a Promise.all) in the inner function.
229
+
Just write Redux actions and stores as normal (read the [Redux](https://redux.js.org) document if you are new). The starter using [axios](https://github.com/axios/axios) as the data fetcher, it's quite simple and easy to use. If the action creator is asynchronous then it will return a Promise (or a Promise.all) in the inner function.
230
230
231
231
Register the action(s) in `./src/routes.tsx`, which have to be called from server-side:
232
232
@@ -239,7 +239,8 @@ export default [
239
239
exact:true,
240
240
component: RouteComponent,
241
241
// Actions in the loadData function will be fetched from server-side
242
-
loadData: () => [
242
+
// You can access the URL parameters, Redux store, HTTP request and response by the event object
0 commit comments