snapped
Snapshot generator for React UI. Inspired by Jest snapshot testing.
Install
$ npm install snapped
Usage
import generateSnapshot from 'snapped';const reactElement = <div ='class'> Hello world! </div>;console;
Output:
<div
className="class"
>
Hello, world!
</div>
Testing
$ npm test$ npm run lint