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