aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/index.umd.ts
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-03 07:04:17 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-03 07:06:25 +0800
commitdde918e9a0c616ab24bd061212f6024aceee508d (patch)
tree0041e7aa94b5f58c18791a5968cd9ef3dca7dac1 /packages/instant/src/index.umd.ts
parent8990b92dd66c65e0218edd42072dd8124f7694a8 (diff)
downloaddexon-sol-tools-dde918e9a0c616ab24bd061212f6024aceee508d.tar
dexon-sol-tools-dde918e9a0c616ab24bd061212f6024aceee508d.tar.gz
dexon-sol-tools-dde918e9a0c616ab24bd061212f6024aceee508d.tar.bz2
dexon-sol-tools-dde918e9a0c616ab24bd061212f6024aceee508d.tar.lz
dexon-sol-tools-dde918e9a0c616ab24bd061212f6024aceee508d.tar.xz
dexon-sol-tools-dde918e9a0c616ab24bd061212f6024aceee508d.tar.zst
dexon-sol-tools-dde918e9a0c616ab24bd061212f6024aceee508d.zip
Add public dir
Diffstat (limited to 'packages/instant/src/index.umd.ts')
-rw-r--r--packages/instant/src/index.umd.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/instant/src/index.umd.ts b/packages/instant/src/index.umd.ts
new file mode 100644
index 000000000..d4eca177d
--- /dev/null
+++ b/packages/instant/src/index.umd.ts
@@ -0,0 +1,10 @@
+import * as React from 'react';
+import * as ReactDOM from 'react-dom';
+
+import { ZeroExInstant } from './index';
+
+export interface ZeroExInstantOptions {}
+
+export const render = (props: ZeroExInstantOptions, selector: string = '#zeroExInstantContainer') => {
+ ReactDOM.render(React.createElement(ZeroExInstant, props), document.querySelector(selector));
+};