diff --git a/packages/redux-dynamic-modules-react/src/DynamicModuleLoader.tsx b/packages/redux-dynamic-modules-react/src/DynamicModuleLoader.tsx index f2754fc..f03ef9c 100644 --- a/packages/redux-dynamic-modules-react/src/DynamicModuleLoader.tsx +++ b/packages/redux-dynamic-modules-react/src/DynamicModuleLoader.tsx @@ -9,6 +9,8 @@ import { } from "redux-dynamic-modules-core"; export interface IDynamicModuleLoaderProps { + /** Explicitly name children as a prop to work with @types/react@18 */ + children: React.ReactNode; /** Modules that need to be dynamically registerd */ modules: IModuleTuple; @@ -186,4 +188,4 @@ class AddedModulesCleanup extends React.Component { public componentWillUnmount() { this.props.cleanup(); } -} \ No newline at end of file +}