0.1.3 • Published 7 years ago
react-elements-to-string v0.1.3
react-elements-to-string
Features
- Implement the basic conversion logic which can convert react elements written in JSX into PURE String
- Add option
useFuncContent
, toggle whether display the function content of only its nametrue
: display function contentfalse
: display only function name
- Support using it as a normal REACT Component
How to use
npm install react-elements-to-string --save
import ReactElementToString from 'react-elements-to-string'
// In render
<ReactElementObjectToString reactElements={<div>hello world</div>} useFuncContent={false} />
Lisence @MIT
Copyright to @2012-2017 Staydan.com