react-rehydrate v1.0.0
React Rehydrate
React Rehydrate is a updated version of react-from-markup
Why?
Sometimes, your tech stack doesn’t speak JavaScript very well.
This can be a particular problem with some CMS, or legacy systems. React is a JavaScript library, and oftentimes, it’s difficult to create the bootstrapping JavaScript from your templating system.
react-from-markup
is intended to make it possible to use React components on these legacy systems, without changing the way you write your React components. It provides tools to simplify the mapping from data-
attributes into React props, and can even handle React children.
The result: React can be used to build a component library, useable by other React apps, but you don’t need to write a second component library for your legacy systems, or a second set of non-React JavaScript. You just need to integrate new markup into your non-React templates, and run a script on page load to initialize.
Documentation
In-depth documentation can be found here.
3 years ago