0.2.14 • Published 4 years ago
@xest/react v0.2.14
@xest/react
React higher order components (HoCs) and hooks for accessing xest host functions
Installation
yarn add @xest/react
Usage
All HoCs and hooks, with the exception of the useObservable
hook, require a Provider
component to be created higher
in the component tree.
A minimal configuration using locally stored data might look like:
import React from 'react'
import ReactDOM from 'react-dom'
import host from '@xest/host'
import { Provider } from '@xest/react'
import App from './App'
ReactDOM.render(
<Provider host={host()}>
<App />
</Provider>,
document.getElementById('root')
)