add classNames to inputs

This commit is contained in:
Thomas Ruoff
2017-02-20 23:16:21 +01:00
parent 153771e89c
commit bb54710036
2 changed files with 8 additions and 2 deletions

View File

@@ -4,7 +4,10 @@ export default function(props) {
return ( return (
<label> <label>
{props.text}: {props.text}:
<input onchange={props.onchange.bind(null, props.name)} type="text" /> <input
class={props.name}
onchange={props.onchange.bind(null, props.name)} type="text"
/>
</label> </label>
); );
} }

View File

@@ -4,7 +4,10 @@ export default function(props) {
return ( return (
<label> <label>
{props.text}: {props.text}:
<textarea onchange={props.onchange.bind(null, props.name)} /> <textarea
class={props.name}
onchange={props.onchange.bind(null, props.name)}
/>
</label> </label>
); );
} }