tour
backend repo
a node.js project tour-backend
how to start
make sure that you have installed redux dev-tool. Or the application would throw an error.
# install the dependences
$ npm install
# start dev server
$ npm run dev
👻 go to localhost:3000 and view the page
what I use
Repos that I want to try
react-motion
react-magic
popmotion
编辑器
scroll animation
Links
Site Design
Remind
- to set
historyApiFallback
is a way to avoidCannot GET/**
after refresh browser - user
withRouter
because when you have an export connect, you need to tell that that component will be using the router. - use src img in jsx, you should import img as a module then webpack url loader can rerolve it. Do not use relative path because there is no
html-withimg-loader
in jsx. Jsx is a module rather thanhtml
file - if you want to call side effects while a components props changing. It's better to use
componentDidupdate
rather thancomponentWillRecieveProps
.here is the reson �and this blog remind us to cancel http request when unmounted the component.
to figure out
- why react docs says that
willRecieveProps
may cause multiple update ? - why component
Article
update(render) three times ? - ref
Backlog
- get method to fetch article detail