Comments (11)
Hey there, any update on this ? Cheers ;)
from react-laravel.
Huum, for now I would use the first option, the second seems wrong.
But, as I said, it's for now, I'm planning to create a @react_router
directive soon !
from react-laravel.
That sounds pretty cool... why would you write your react routes in blade though?
from react-laravel.
Actually I wouldn't, the directive would mount and run the router, as the @react_component
do for components, I'm still thinking about it, suggestions are welcome.
from react-laravel.
I do think connecting the routing somehow would be pretty awesome. Just thinking myself how I would like that to work.
from react-laravel.
Hey, @brenelz, sorry by the delay, I've been busy ! I'm thinking about building something using laroute, what do you think ?
from react-laravel.
@brenelz good direction we need something like isomorphic app .
send to client all route needed for the page if javascript fallback or client going to other page route it from the server.
from react-laravel.
@talyssonoc I like the laroute idea.
For me, the real appeal of a client-side app is the quick response of the UI, as the app only gets page specific (often Json) data from the server, following navigation.
Would this allow us to access important Laravel features like route specific middleware, and route bindings?
from react-laravel.
Hi, @karlonauger, as it would just generate the URL for the route I would say yes, it would allow access to middlewares and so on. I think it would let React just make ajax requests to the given URL and, there, you can say what will be sent to the client (something like this pjax example: https://github.com/defunkt/jquery-pjax#server-side), what do you think ?
from react-laravel.
That sounds great! It would save me a ton of time trying to re-design, and duplicate client-side authentication.
from react-laravel.
Do you know how to access direct a permanent link create by react creating the route in laravel?
from react-laravel.
Related Issues (20)
- V8Js::executeString():1: TypeError: Cannot call method 'renderToString' of undefined HOT 1
- Construct ReactJS only when needed. HOT 1
- composer minimum-stability HOT 1
- v8js on Laravel Homestead with php7 HOT 8
- Multiple react apps within single laravel instance HOT 2
- 'prerender' => false is not working HOT 15
- Syntax error HOT 4
- configuring jsx
- Configuring HOT 4
- undefined:13: ReferenceError: document is not defined HOT 12
- Usage with redux
- is this still alive? HOT 2
- NPM Install Issue
- Minimum stability problem HOT 1
- Minimum Version of Laravel HOT 1
- Guide for Laravel for REST API only
- ComposerAutoloaderInit error HOT 1
- update
- Error Fetching Data in React Native with Laravel as a Back-End
- React router best practice
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-laravel.