@cycle/react-dom
Version:
Cycle.js driver that uses React DOM to render the view
23 lines (22 loc) • 689 B
TypeScript
import { ReactElement, ReactType } from 'react';
export { Attributes } from 'react';
declare global {
namespace JSX {
interface IntrinsicAttributes {
sel?: string | symbol;
}
}
namespace React {
interface ClassAttributes<T> extends Attributes {
sel?: string | symbol;
}
}
}
declare type PropsExtensions = {
sel?: string | symbol;
};
declare function createIncorporatedElement<P = any>(type: ReactType<P>, props: P & PropsExtensions | null, ...children: Array<string | ReactElement<any>>): ReactElement<P>;
declare const _default: {
createElement: typeof createIncorporatedElement;
};
export default _default;