0.0.3 • Published 5 years ago
@c8s/cracker v0.0.3
@c8s/cracker
tbw
Usage
/**
* As to prepare of using the `cracker`
*
* ```bash
* yarn add @c8s/cracker react @types/react
* ```
*/
import Cracker from '@c8s/cracker';
Example
() => (
<Cracker
// when a `[data-tag='img']` reached the display area,
// to insert element as `<img src="//xxx.com/xxx.png">`
query="[data-tag='img']"
dangerouslySetInnerHTML={{
__html: '<div data-tag="img" data-src="//xxx.com/xxx.png"></div>
}}
/>
);
Contributors
Thanks goes to these wonderful people (emoji key):
純📖 | Aki-Japan📖 |
---|
This project follows the all-contributors specification. Contributions of any kind welcome!