input-core
This project would help you if:
- You don't need to create an input for user, but only formatting to show data as a plain text
- You want to create your own compnent which will work with inputs
Step-by-step guide:
-
Install it
npm install --save input-core
or
yarn add input-core
-
import it:
; -
Create an object (for example, if we want to format phone):
{ const input = ; return input;}
- Use it wherever you need ;)
const phone = '9651112222';...; // returns +7 (965) 111 22-22
License
MIT