Answer the question
In order to leave comments, you need to log in
How to make a site without reloading on react.js?
I use react-router and there is something like this code
ReactDOM.render(
<Router history={hashHistory}>
<Route path="/" component={Contents}>
<IndexRoute component={MainContent}/>
<Route path=":id" component={MoreItemSite} />
</Route>
</Router>
, document.getElementById('app')
);
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question