clear-render

0.1.18 • Public • Published

clear-render

To answer the question. Why did the rendering happen? 👀

➕ used directly for one component, therefore it works very fast

➕ for all versions of React from ^0.13.0 to ^16.0.0

➕ zero dependencies

example

Install

npm install clear-render --save-dev

You can set globally, to be used in all their projects without having to install each.

Usage

Wrap the component for which you want to watch. And yet! 🏁

import clearRender from 'clear-render';
 
@clearRender
class SimpleComponent extends React.Component {
 
    ...
 
}

or

import clearRender from 'clear-render';
import OriginalSimpleComponent from './SimpleComponent';
 
const SimpleComponent = clearRender(OriginalSimpleComponent);
 
...
 
<SimpleComponent {...props} />

Usage for CodePen and JSBin as UMD module

in html area

<script src="https://unpkg.com/clear-render@latest/build/umd/index.js"></script>

in js area use clearRender from global scope

@clearRender
class SimpleComponent extends React.Component {
 
    ...
 
}

Contributing

Got ideas on how to make this better? Open an issue!

License

MIT

install

npm i clear-render

Downloadsweekly downloads

4

version

0.1.18

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability