mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-13 01:01:29 -05:00
25 lines
492 B
React
25 lines
492 B
React
|
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;
|