4 ms·
Wow, really. That's awesome! My initial happiness when I got server-side rendering working complete with ajax calls on the server was short lived once I realiz
by xtrumanx 12y ago
Wow, really. That's awesome!
My initial happiness when I got server-side rendering working complete with ajax calls on the server was short lived once I realized none of my forms worked until React had chance to load and run.
I'm really glad someone else out there has noticed this issue and is attempting to tackle it.
Although I was hoping I would still have control of how I build my forms while I do it. Do you think it would be possible to separate the form submission and redisplay functionality from the widget library part of newforms?
- insin 12y agoThe important part for making it isomorphic is the data flow - you could use any component which can populate its form fields and error messages from props on initial render. The express middleware [1] which uses your react-router routes just handles getting data to the right place. [1] https://github.com/insin/isomorphic-lab/blob/master/src/react-router-middleware.jsx https://github.com/insin/isomorphic-lab/blob/master/src/reac...