I have some WordPress plugin projects planned which would benefit greatly from using ReactJS in the WordPress admin.
I'm pretty sure I can get ReactJS working in the admin but the sticking point is how I would go about setting initial state (on initial page load), and saving state when you want to save progress before leaving the page.
There are plenty of examples for using ReactJS on the WordPress front end for themes using the WP REST API to save/set ReactJS state, but what about when working in the WordPress admin? What sort of approach would be best suited here?
@Rarst State in this context is just data in the app. e.g. input values, check boxes, text areas, and so on. The important thing is how the data is saved/retrieved. e.g. it could just be a (JSON) text string.
@cybmeta Good point. Just not seen any solid examples of using the WP REST API from the admin. I guess this will change once it makes it to core.