Guest User

Untitled

a guest
Jan 18th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. const inputType = (type) => {
  2. console.log('type: ' + type)
  3. switch(type) {
  4. case 'textarea':
  5. <Textarea
  6. id={id}
  7. placeholder={placeholder}
  8. value={value}
  9. error={error}
  10. />
  11. break;
  12. case 'input':
  13. <Input
  14. id={id}
  15. type={type}
  16. placeholder={placeholder}
  17. value={value}
  18. error={error}
  19. />
  20. break;
  21. }
  22. }
Add Comment
Please, Sign In to add comment