mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-03 06:27:19 +01:00
make client own package (using create-react-app)
This commit is contained in:
15
client/src/Input.js
Normal file
15
client/src/Input.js
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user