Skip to content

Error in mixins/classable.js - need to require react/addons #96

@deslee

Description

@deslee

The first two lines of code:

var React = require('react'),
  classSet = React.addons.classSet;

should be:

var React = require('react/addons'),
  classSet = React.addons.classSet;

The browserify bundle was throwing an error, but I fixed it by requiring "react/addons" in my main file, which adds the "addon" property to React. This should be fixed or the docs need to specify that react/addons is needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsImprovements or additions to the documentation.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions