React Classname 使用

Classnames

A simple javascript utility for conditionally joining classNames together.

Install with npm or Bower.

npm install classnames

Use with node.js, browserify or webpack:

var classNames = require('classnames');
classNames('foo', 'bar'); // => 'foo bar'

Alternatively, you can simply include index.js on your page with a standalone

你可能感兴趣的:(React Classname 使用)