MCPcopy Index your code
hub / github.com/plotly/dash / createElement

Function createElement

dash/dash-renderer/src/wrapper/wrapping.ts:5–16  ·  view source on GitHub ↗
(
    element: any,
    props: any,
    extraProps: any,
    children: any
)

Source from the content-addressed store, hash-verified

3import {DashComponent, DashLayoutPath} from '../types/component';
4
5export function createElement(
6 element: any,
7 props: any,
8 extraProps: any,
9 children: any
10) {
11 const allProps = mergeRight(props, extraProps);
12 if (Array.isArray(children)) {
13 return React.createElement(element, allProps, ...children);
14 }
15 return React.createElement(element, allProps, children);
16}
17
18export function isDryComponent(obj: any) {
19 return (

Callers 1

hydrateFuncFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…