-
Notifications
You must be signed in to change notification settings - Fork 99
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
What is the recommended way to integrate with redux-simple-router #4
Comments
Hi @yakirn, react-router alone should work fine, I am also using it on some projects created with this generator. However, there is another fork of this generator, https://github.com/stylesuxx/generator-react-webpack-redux. It comes with really nice Redux support out of the box. Usage is (mostly) the same. If you plan to use Redux, I think you should use his generator instead. Sorry that I could not help you more :(. |
@weblogixx thanks for replying. I actually used that fork, and meant to post this issue there. (I dunno how I got in here, maybe accidently clicked the "forked form" link :/) |
you are welcome and I think I get it now :). Seems like @stylesuxx has the issue tracking active in package.json, but disabled it on Github... @stylesuxx: Mind to open die issue on your project? |
Oh, thanks for the hint, seems Issues are disabled by default when forking a project, I enabled the Issue section now. @yakirn Maybe you could c/p the issue to my fork, so we can close it here and discuss it over there :-) |
@stylesuxx Sure. done. stylesuxx#1 |
I created a clean project using the generator.
then,
npm install --save react-router redux-simple-router
but couldn't render components using Routes.
I changed run.js to render the routes:
Modified reducers/index.js to combine the routeReducer:
and added
Router.RouteHandler
to render under Main.js (AppComponent).but I keep getting these two errors:
Warning: React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components). Check the render method of
AppComponent
.Uncaught Error: Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. Check the render method of
AppComponent
.Thanks in advanced
The text was updated successfully, but these errors were encountered: