0.2.3 • Published 2 months ago
@rhc-shared-components/control-wrapper v0.2.3
@rhc-shared-components/control-wrapper
project description
Install
npm install --save @rhc-shared-components/control-wrapper
Usage
import React from 'react';
import { ControllerContext, ControllerContextProvider } from '@rhc-shared-components/control-wrapper';
export const Example =(props) => {
return <ControllerContextProvider><YourComponent /></ControllerContextProvider>;
}
export const YourComponent = (props) => {
const controlData = React.useContext(ControllerContext);
}
License
MIT © authorGithubUsername