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

15
client/src/Input.js Normal file
View File

@@ -0,0 +1,15 @@
import React from 'react';
export default function(props) {
return (
<label>
{props.text}
<input
className={props.name}
type="text"
placeholder={props.placeholder}
onChange={props.onchange.bind(null, props.name)}
/>
</label>
);
}