You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import { Component } from 'react';
|
|
|
|
export default class Option extends Component {
|
|
render() {
|
|
const className = ['option'];
|
|
|
|
if (this.props.selected === true) {
|
|
className.push('selected');
|
|
}
|
|
|
|
return (
|
|
<div className={className.join(' ')}>{this.props.value}</div>
|
|
);
|
|
};
|
|
};
|
|
|