react#ProviderProps TypeScript Examples

The following examples show how to use react#ProviderProps. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.tsx    From brick-design with MIT License 5 votes vote down vote up
BrickStoreProvider = (props: ProviderProps<any>) => {
  return <BrickStoreContext.Provider {...props} />;
}
Example #2
Source File: index.tsx    From brick-design with MIT License 5 votes vote down vote up
FunParamContextProvider = (props: ProviderProps<any>) => (
  <FunParamContext.Provider {...props} />
)
Example #3
Source File: index.tsx    From brick-design with MIT License 5 votes vote down vote up
MapNodeContextProvider = (props: ProviderProps<any>) => (
  <MapNodeContext.Provider {...props} />
)
Example #4
Source File: index.tsx    From brick-design with MIT License 5 votes vote down vote up
PropsProvider = (props: ProviderProps<any>) => {
  return <PropsContext.Provider {...props} />;
}
Example #5
Source File: index.tsx    From brick-design with MIT License 5 votes vote down vote up
StaticContextProvider = (props: ProviderProps<any>) => (
  <StaticContext.Provider {...props} />
)
Example #6
Source File: index.tsx    From brick-design with MIT License 5 votes vote down vote up
OperateProvider = (
  props: ProviderProps<BrickStore<OperateStateType>>,
) => {
  return <OperateContext.Provider {...props} />;
}
Example #7
Source File: table.ts    From fe-foundation with Apache License 2.0 5 votes vote down vote up
TableProvider = TableContext.Provider as <T, E, K extends keyof T>(
    props: ProviderProps<Table<T, E, K>>
) => JSX.Element
Example #8
Source File: ECS.tsx    From react-ecs with MIT License 5 votes vote down vote up
Provider(props: Omit<ProviderProps<ECS>, 'value'>) {
        return (
            <ECSContext.Provider value={this}>{props.children}</ECSContext.Provider>
        );
    }