Skip to content

jonatansberg/react-immutable-render-mixin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-immutable-render-mixin

This mixin replaces the PureRenderMixin when using facebook/immutable-js library with React

This mixin implements shouldComponentUpdate method using prop and state equality with Immutable.is().

var ImmutableRenderMixin = require('react-immutable-render-mixin')
React.createClass({
  mixins: [ImmutableRenderMixin],

  render: function() {
    return <div className={this.props.className}>foo</div>;
  }
});

About

react pure render mixin for facebook/immutable-js library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%