I want to change classSet to classnames, so I use browserify to let me use require('classname').
So I run npm install classnames and I simply change cx = React.addons.classSet to cx = require('classnames'). I got the error message:
Uncaught ReferenceError: PersonCard is not defined
Hi everyone,
I follow http://codeloveandboards.com/blog/2014/09/10/rails-and-react-ii-a-real-use-case/. They use the line
cx = React.addons.classSet
in the last step "The PersonCard component".I want to change classSet to classnames, so I use browserify to let me use require('classname').
So I run
npm install classnames
and I simply changecx = React.addons.classSet
tocx = require('classnames')
. I got the error message:Uncaught ReferenceError: PersonCard is not defined
This is part of my Gemfile:
and part of my package.json:
Original person_card.js.coffee and PersonCard.js output is in jsfiddle
I also followed #181 , but it doesn't help. Can anyone help me?