react-pure-decorator

0.0.2 • Public • Published

Build Status Code Climate Test Coverage Dependency Status devDependency Status

react-pure-decorator

Marks the react component as pure for optimized rendering

Installation

Run <npm install --save react-pure-decorator> and then use the default export of the module

Purpose

Pure prevents unneccesary rendering of a page

Example

Using the Pure decorator, you can attach a stylesheet to a component like this:

import {Pure} from 'decorators';

@Pure()
 export class ControlPanelLine extends Component {
 static displayName = 'ControlPanelLine';

Readme

Keywords

none

Package Sidebar

Install

npm i react-pure-decorator

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • scaftw