News for hackers. Stuff that matters.
Re:React Implementation Notes by sim0n on Monday October 10, 2016 @07:19PM (#12680566)
For me, once I started declaring my UI as a series of components that simply render what they are provided (the common `v = f(d)` expression), it was hard to go back to the Backbone/jQuery way of mutating things all over the place and manually updating DOM nodes to try and reflect the current app state.
Re:React Implementation Notes by garrincha on Monday October 10, 2016 @07:29PM (#12680622)
Thanks! So is react the only JS framework you use now (besides jQuery)?
Re:React Implementation Notes by sim0n on Monday October 10, 2016 @07:39PM (#12680684)
For view/UI, yes (if you can call React a framework). I personally do not use jQuery anymore as there is not much need to deal with the DOM directly when using React and when there is, I just use vanilla JS.

Since React only deals with UI, I use it alongside a bunch of other great libraries such as Redux (for state management).

Re:React Implementation Notes by garrincha on Monday October 10, 2016 @07:41PM (#12680694)
Out of curiosity, what do you usually use on the backend?
Re:React Implementation Notes by sim0n on Monday October 10, 2016 @07:43PM (#12680720)
The backend where I work (Airbnb) runs on Rails but most of my projects use node on the backend since they usually just expose a REST API.

Since it only cares about UI, React is obviously not opinionated about your backend/server environment unless you're trying to do server rendering (then you need something in your stack capable of executing JS).

Re:React Implementation Notes by tmzt on Monday October 10, 2016 @09:13PM (#12681218)
I've spent some time looking at the 'needs a JS runtime' part and am prototyping an isometric framework in rust which renders with natively compiled code on the server and generated JS on the client, both generated from the same source template and logic. The JS can also be cached and served statically.

The server-rendered page is then instanced in the browser and differential rendering can be performed. I have been interested in doing this concept using React but have decided to prototype with a simpler implementation called Incremental DOM.

My project is at github.com/tmzt/incrust.

Re:React Implementation Notes by supergreg on Monday October 10, 2016 @11:14PM (#12681639)
Nice. I was always wondering why no one was trying to do isometric stuff in other languages since every language and their mother seem to have a compile-to-js feature.
Re:React Implementation Notes by rounce on Tuesday October 11, 2016 @02:36AM (#12682244)
*isomorphic (FTFY)

Nice project!