1.0.0 • Published 3 years ago

react-rehydrate v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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.