A HOC to easily use @parity/light.js with React.
npm install @parity/light.js-reactA HOC to easily use @parity/light.js with React.




The libray provides a higher-order component (HOC) to use @parity/light.js's Observables easily with React apps.
``javascript
import light from '@parity/light.js-react';
import { myBalance$, syncStatus$ } from '@parity/light.js';
@light({
myBalance: myBalance$, // myBalance will be a BigNumber
mySyncVariable: syncStatus$
})
class MyClass extends React.Component {
render() {
return (
The UI will automatically update when the sync status changes.