-
Notifications
You must be signed in to change notification settings - Fork 77
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
Integration with FOSJsRoutingBundle #4
Comments
Did anyon succesfully combine the 2 yet? |
Is this still in the works? Would be much easier to work with |
If someone has a good idea/implementation for this... |
I do it like this:
then in react - create a component:
and then import this component where u need the get the route:
|
@luchianenco how do you get window working in SSR ? i'm using 'switchs' in my routes array to configure imbriqued routes but you can name whatever you want here is my actual array sending
this is added to a global store to let every components acces this array if necessary
the AllComponent is an object who let call any component with a string name (stored with route)
|
@luchianenco here is an alternative solution from @weaverryan |
@acidjames this is a nice tool, but in April it was not yet published ;) |
RIght now the routes in React are hardcoded, and that is ugly. We should be able to use FosJsRoutingBundle and integrate it into Webpack.
I guess we could require in the Webpack bundles
web/bundles/fosjsrouting/js/router.js
and also load the routefos_js_routing_js
with aurl-loader
.The text was updated successfully, but these errors were encountered: