Creates a data provider to access CanKing data. The CanKingDataProvider component is needed to be at the root of the component tree to make it possible to use the CanKing UI Controls.
const container = document.getElementById('root') as HTMLElement;const root = createRoot(container);root.render( <React.StrictMode> <CanKingDataProvider> <App /> </CanKingDataProvider> </React.StrictMode>,); Copy
const container = document.getElementById('root') as HTMLElement;const root = createRoot(container);root.render( <React.StrictMode> <CanKingDataProvider> <App /> </CanKingDataProvider> </React.StrictMode>,);
Component properties.
The CanKingDataProvider React component.
Creates a data provider to access CanKing data. The CanKingDataProvider component is needed to be at the root of the component tree to make it possible to use the CanKing UI Controls.
Example