import React, { ReactNode } from "react"; import "./Input.scss"; type InputProps = { children?: ReactNode; inputLabel?: string; inputValue?: string; inputType?: string; inputProps?: object; }; const Input: React.SFC = ({ children, inputLabel, inputValue, inputProps }: InputProps) => { return (
); }; Input.defaultProps = { children: "", inputLabel: "", inputValue: "", inputType: "text", inputProps: { onChange: (event: any) => { console.log("You have change me!", event.target); } } }; export default Input;