Created with CodeSandbox & CRA
You need to implement <Input /> component with following restrictions:
- You can't use
<input>,<textarea>andcontenteditableattribute. - You can't add event handlers on elements rendered by the
<Input />component:addEventListener,onChange,onClickand so on.
A minimal version of <Input /> should be able to move cursor, add and remove character. Any additions are welomce!