@c8s/cracker
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

@c8s/cracker

tbw

github npm:version typescript license browserslist code style:prettier

Usage

/**
 * As to prepare of using the `cracker`
 * 
 * ```sh
 * 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!

Readme

Keywords

none

Package Sidebar

Install

npm i @c8s/cracker

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

15.5 kB

Total Files

12

Last publish

Collaborators

  • akijpn
  • nju33