1.0.2 • Published 11 months ago
@rhc-shared-components/control-wrapper v1.0.2
@rhc-shared-components/control-wrapper
project description
Install
npm install --save @rhc-shared-components/control-wrapperUsage
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