UNPKG

rescript

Version:
27 lines (21 loc) 723 B
import * as React from "react"; import * as Caml_splice_call from "./caml_splice_call.js"; function createElementWithKey(key, component, props) { return React.createElement(component, key !== undefined ? Object.assign({}, props, { key: key }) : props); } function createElementVariadicWithKey(key, component, props, elements) { return Caml_splice_call.spliceApply(React.createElement, [ component, key !== undefined ? Object.assign({}, props, { key: key }) : props, elements ]); } export { createElementWithKey , createElementVariadicWithKey , } /* react Not a pure module */