Skip to content

Function: createProps() ​

ts
function createProps<T>(defaults, hooks?): D3PPropsHandle<T>;

Defined in: core/props.ts:54

Creates the props of an object from their defaults: a value that is read, merged into (props({...})) or assigned field by field, and that tells the owner when it changed.

Type Parameters ​

T ​

T extends object

Parameters ​

defaults ​

T

hooks? ​

D3PPropsHooks<T> = {}

Returns ​

D3PPropsHandle<T>