UNPKG

@rescript/std

Version:

The motiviation of this repo is that when ReScript users want to share their library with JS users, the JS users don't need have ReScript toolchain installed, this makes sharing code with JS users easier (more details on that topic can be found in our [Ex

28 lines (22 loc) 806 B
'use strict'; var React = require("react"); var Caml_splice_call = require("./caml_splice_call.js"); function createElementWithKey(key, component, props) { return React.createElement(component, key !== undefined ? Object.assign({ key: key }, props) : props); } function createElementVariadicWithKey(key, component, props, elements) { return Caml_splice_call.spliceApply(React.createElement, [ component, key !== undefined ? Object.assign({ key: key }, props) : props, elements ]); } var Jsx; exports.Jsx = Jsx; exports.createElementWithKey = createElementWithKey; exports.createElementVariadicWithKey = createElementVariadicWithKey; /* react Not a pure module */