Originally shared by Todd Fleming
Playing with react-hot-loader. The running web app preserves its internal state when I update the source.
Originally shared by Todd Fleming
Playing with react-hot-loader. The running web app preserves its internal state when I update the source.
CNCWeb is getting some of your love and magic???
I’m just playing around. react-hot-loader requires rewriting it to use React, which would probably be controversial since it’s very different from jquery + backbone. On the upside, the code would be smaller.
A clean dev environment is coming soon (ES6, babel, webpack, live update, hotplug, docs generation from code and more…) Maybe React.js but no experience with it, I am most familiar with Knockout.js. But go for controversy, I learned a lot following the debate on ES6. And MEACULPA!!! ES6 ROCKS!!!
There’s one more complication if you want full jscut operation. Part of it is C++ compiled by emscripten since I couldn’t find a JS replacement for a library I needed. It needs that library for tabs and V carving.
Super excited about vcarve that’s my favorite type of work to do on my router… and would warrant me switching over the OX to smoothie
I just pushed the hot-reloading example to LaserWeb4’s react-example branch. To see what React looks like: https://github.com/openhardwarecoza/LaserWeb4/blob/react-example/app/laserweb/layout/panes/cam/cam.js
Yes I’ve seen, that’s great. I was looking for other alternatives like Riot.js who have a cleaner syntax. But after hours of reading, React is the conqueror, more flexible, more stable and more documentation. I start to play with.
I’d be happy with React, Riot, or almost any library which uses a virtual DOM approach. I currently use https://github.com/Matt-Esch/virtual-dom for work, but its unusual prototype chain doesn’t play well with ES6 classes, so I plan to switch to something else for future projects.
Playing with react+redux, learning a lot of new things redux going to help us later for features such as undo/redo or (re)load the application with saved state.
Whoa! Nice! I was holding back on redux since I didn’t want to scare anyone!
This is a good series for learning redux: https://egghead.io/courses/getting-started-with-redux
Be careful with the react-fundaments course; it’s 2 years old and is teaching deprecated stuff. E.g. the refs lesson is the old way, which will eventually go away.