aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/index.umd.ts
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-24 05:09:44 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-24 05:13:06 +0800
commit864f89c535cf68a9325f27eae7f49a088c481120 (patch)
tree20e40e1a5bf46f8b7e408e5223979cfa7a2994ff /packages/instant/src/index.umd.ts
parentc5014af7fe7b06c01edfc677da48628d4972e298 (diff)
downloaddexon-sol-tools-864f89c535cf68a9325f27eae7f49a088c481120.tar
dexon-sol-tools-864f89c535cf68a9325f27eae7f49a088c481120.tar.gz
dexon-sol-tools-864f89c535cf68a9325f27eae7f49a088c481120.tar.bz2
dexon-sol-tools-864f89c535cf68a9325f27eae7f49a088c481120.tar.lz
dexon-sol-tools-864f89c535cf68a9325f27eae7f49a088c481120.tar.xz
dexon-sol-tools-864f89c535cf68a9325f27eae7f49a088c481120.tar.zst
dexon-sol-tools-864f89c535cf68a9325f27eae7f49a088c481120.zip
chore: incorportate pr feedback
Diffstat (limited to 'packages/instant/src/index.umd.ts')
-rw-r--r--packages/instant/src/index.umd.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/instant/src/index.umd.ts b/packages/instant/src/index.umd.ts
index fe78ce401..f648b37f2 100644
--- a/packages/instant/src/index.umd.ts
+++ b/packages/instant/src/index.umd.ts
@@ -1,8 +1,9 @@
import * as React from 'react';
import * as ReactDOM from 'react-dom';
+import { DEFAULT_ZERO_EX_CONTAINER_SELECTOR } from './constants';
import { ZeroExInstant, ZeroExInstantProps } from './index';
-export const render = (props: ZeroExInstantProps, selector: string = '#zeroExInstantContainer') => {
+export const render = (props: ZeroExInstantProps, selector: string = DEFAULT_ZERO_EX_CONTAINER_SELECTOR) => {
ReactDOM.render(React.createElement(ZeroExInstant, props), document.querySelector(selector));
};