1.0.5 • Published 5 years ago

clear-render v1.0.5

Weekly downloads
8
License
MIT
Repository
github
Last release
5 years ago

clear-render

To answer the question. Why did the rendering happen? :eyes:

:heavy_plus_sign: support for React Hooks;

:heavy_plus_sign: patching only target component, therefore it is works very fast for large project;

:heavy_plus_sign: for all versions of React from ^0.13.0 to ^16.0.0;

:heavy_plus_sign: easy usage! wrap component and done.

:heavy_plus_sign: zero dependencies.

Advantage over analogues

Advantage over analogues: welldone-software/why-did-you-render, maicki/why-did-you-update and garbles/why-did-you-update, is a function that monkey patches React (it is works very very slow for large project) and not support React hooks.

Sandbox

You can test the library >> HERE << (notice the console).

Usage

Wrap the component for which you want to watch. :checkered_flag:

import clearRender from 'clear-render';

class SimpleComponent extends React.Component {
    ...
}

export default clearRender(SimpleComponent);

or

import clearRender from 'clear-render';

const SimpleComponent = (props) => {
    ...
}

export default clearRender(SimpleComponent);

Usage for CodePen and JSBin as UMD module

in html area

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

in js area use clearRender from global scope

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

Install

npm i --save-dev clear-render 

Contributing

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

License

MIT

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.18

6 years ago

0.1.17

6 years ago

0.1.16

6 years ago

0.1.15

6 years ago

0.1.14

6 years ago

0.1.13

6 years ago

0.1.12

7 years ago

0.1.11

7 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago