make client own package (using create-react-app)

This commit is contained in:
Thomas Ruoff
2017-02-23 00:45:39 +01:00
parent 8bf72b470e
commit 2441268fb8
44 changed files with 1816 additions and 576 deletions

17
client/src/Select.js Normal file
View File

@@ -0,0 +1,17 @@
import React from 'react';
export default (props) => {
const { options = [] } = props;
return (
<label>
{props.text}
<select
className={props.name}
onChange={props.onchange.bind(null, props.name)}
>
{options.map((option) => <option label={option.name} value={option.value} key={option.value}/>)}
</select>
</label>
);
}