Closed franvarney closed 9 years ago
Thanks for opening an issue. The remount example demonstrating the ability to do universal (isomorphic) apps with hapi-react-views
is super simple and leaves a lot to be desired.
Aqua uses hapi-react-views
but doesn't use a universal approach. It's like a handful of single page apps that make up a larger app. It's not universal on purpose. Someone once asked "How to make aqua isomorphic?" and in that thread I talk about the different considerations we need to keep in mind to achieve universal web app nirvana. Some points I'd like to highlight form that thread:
The React/Flux landscape has been changing a lot and I think these new things will change the way I approach universal web apps in the future.
I haven't been keeping up with the React/Flux/universal-app landscape for a while and will need to dive back in. I'm waiting for react-router
to release a v1 before approaching the next big Aqua update.
:open_mouth: Looking at how much I described... it's a lot to take in. I hope this is helpful, even if only by shedding light on things.
Closing this now. I hope the details helped. What did you end up going with?
Thanks for your response @jedireza. Should have responded sooner but time got away from me!
At the time I posted that, I ended up just doing a sort of basic React app. Figured I would focus on just learning React itself. Currently, I am working my own starter template using Hapi+React/Redux. There's a bit of a learning curve, but it's starting to make sense (slowly)! I will definitely look at some of your repos for reference. :)
:sunglasses:
I'm pretty new to React and having a hard time understanding how multiple views (pages) are rendered when using this module to set up an isomorphic application.
I see that client.js calls render on app.jsx, but how does this work when you have more than just app.jsx? I created two separate views, but it looks like the second page is trying to render with app.jsx. How do I set this up to accept multiple views? If this isn't what I should be doing, can you tell me how I should be going about this?