npm install bsord-blockchaininfo
import React, {useState} from 'react';
import { SimpleAddressCheck } from 'bsord-blockchaininfo'
function App() {
const [address, setAddress] = useState('')
const resultHandler = (result) =>{
console.log(result)
}
return (
<>
<input type="text" value={address} onChange={(e)=>{setAddress(e.target.value)}}/>
<SimpleAddressCheck address={address} onResults={resultHandler}/>
</>
);
}
export default App;
Start develop environment
- git clone https://github.com/bsord/blockchaininfo
- cd blockchaininfo
- npm install
- npm run storyboook
- navigate to localhost:6006
to build and publish
- update package.json version
- npm run build-lib
- npm publish