mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-13 01:01:29 -05:00
24 lines
492 B
JavaScript
24 lines
492 B
JavaScript
var React = require('react');
|
|
var classNames = require('classnames');
|
|
|
|
require('./select.scss');
|
|
|
|
var Select = React.createClass({
|
|
type: 'Select',
|
|
propTypes: {
|
|
|
|
},
|
|
render: function () {
|
|
var classes = classNames(
|
|
'select',
|
|
this.props.className
|
|
);
|
|
return (
|
|
<select {... this.props} className={classes}>
|
|
{this.props.children}
|
|
</select>
|
|
);
|
|
}
|
|
});
|
|
|
|
module.exports = Select;
|