react-ip-input
v0.1.1
Published
This component evaluates the values it receives as IP.
Downloads
4
Readme
React IP Input
This component evaluates the values it receives as IP.
Installation
npm i reatc-ip-input --save
or
yarn add reatc-ip-input
Usage
IpInput component takes one prop which is as React.setState() hook or this.setState() function for class components:
<IpInput setIpInput={setIpInput}>
Then the relevant state will be in IP format.
Example
https://codepen.io/ardaorkin/full/NWgYgwx