Advertisement
Guest User

userInput.js

a guest
Mar 29th, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. import React from 'react';
  2.  
  3. const input = (props) => {
  4. return
  5. (
  6. <div>
  7. <p> This is an input by {props.name} </p>
  8. <p>{props.children}</p>
  9. <input type='Text' onChange={props.changed} value={props.name} />
  10. </div>
  11.  
  12. )
  13. };
  14.  
  15. export default input;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement