You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{VNode,JsxVNodeChildren}from'snabbdom';declare global {namespaceJSX{typeElement=VNode;interfaceElementChildrenAttribute{defaultSlot: JsxVNodeChildren;}}}
JSX code
<section><h2>xxx</h2>{[1,2,3].map(value=><span>{value}</span>)}{/* Type 'VNode[]' is not assignable to type 'JsxVNodeChild'. ts(2322) */}</section>
But WebCell has more property types for DOM & Component node, and SnabbDOM's h() & Fragment() are not fulfilled all my situations, so I need some wrappers.
Example
JSX declaration
JSX code
Context
https://github.com/EasyWebApp/WebCell/blob/c1e69152ab4fa5d219469deaf310ef5a483d8861/source/utility/vDOM.ts#L59-L61
Environment
The text was updated successfully, but these errors were encountered: