-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add something like react-router? #207
Comments
Not quite, to add react-router you have to:
For example, you could do something like this: import { Router, Router, browserHistory } from 'react-router';
/* … */
class App extends Component {
render() {
return (
<Router history={browserHistory}>
<Route path="/" component={Something} />
</Router>
);
}
} No need to change the webpack config! |
@mxstbr I recommend you update your answer to use the
|
@mxstbr Why did you duplicate Router twice in |
@samayo One of them should have been |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi guys,
thanks for the very well done quick-start package!
I'm not a frontend dev, so forgive me if I'm asking for something really basic.
As far as I understand webpack, you have to add dependencies (like react-router) in
webpack.config.js
.Can I do this without ejecting?
The text was updated successfully, but these errors were encountered: