cursor-pure-render
omniscient's shouldComponentUpdate as a decorator
Last updated 5 years ago by spicydonuts .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install cursor-pure-render 
SYNC missed versions from official npm registry.

cursor-pure-render

A decorator for a immutable-js cursor-aware version of the pure-render mixin.

example

import React from 'react'
import cursorPureRender from 'cursor-pure-render';

class HelloComponent extends React.Component {
  render() {
    return <h1>Hello {this.props.cursor.get('name')}!</h1>;
  }
}

export default cursorPureRender(HelloComponent)

Current Tags

  • 1.1.1                                ...           latest (5 years ago)

4 Versions

  • 1.1.1                                ...           5 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (5)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |