= P & PropsExtensions & Attributes;
type Children = string | Array (
type: ElementType | keyof ReactHTML,
props: PropsLike
): ReactElement {
- if (!props.sel) {
+ if (!shouldIncorporate(props)) {
return createElement(type, props);
} else {
return createElement(incorporate(type), props);
@@ -51,7 +63,7 @@ function hyperscriptPropsChildren (
props: PropsLike ,
children: Children
): ReactElement {
- if (!props.sel) {
+ if (!shouldIncorporate(props)) {
return createElementSpreading(type, props, children);
} else {
return createElementSpreading(incorporate(type), props, children);
diff --git a/src/incorporate.ts b/src/incorporate.ts
index 8556b6f..89d5b20 100644
--- a/src/incorporate.ts
+++ b/src/incorporate.ts
@@ -1,10 +1,14 @@
import {createElement, forwardRef} from 'react';
import {Scope} from './scope';
import {ScopeContext} from './context';
-import Incorporator from './Incorporator';
+import {default as defaultIncorporator} from './Incorporator'
-const wrapperComponents: Map