diff options
Diffstat (limited to 'packages/instant/src')
-rw-r--r-- | packages/instant/src/components/zero_ex_instant.tsx | 5 | ||||
-rw-r--r-- | packages/instant/src/globals.d.ts | 6 | ||||
-rw-r--r-- | packages/instant/src/index.ts | 1 | ||||
-rw-r--r-- | packages/instant/src/index.umd.ts | 10 |
4 files changed, 22 insertions, 0 deletions
diff --git a/packages/instant/src/components/zero_ex_instant.tsx b/packages/instant/src/components/zero_ex_instant.tsx new file mode 100644 index 000000000..67e1b683d --- /dev/null +++ b/packages/instant/src/components/zero_ex_instant.tsx @@ -0,0 +1,5 @@ +import * as React from 'react'; + +export interface ZeroExInstantProps {} + +export const ZeroExInstant: React.StatelessComponent<ZeroExInstantProps> = () => <div>ZeroExInstant</div>; diff --git a/packages/instant/src/globals.d.ts b/packages/instant/src/globals.d.ts new file mode 100644 index 000000000..94e63a32d --- /dev/null +++ b/packages/instant/src/globals.d.ts @@ -0,0 +1,6 @@ +declare module '*.json' { + const json: any; + /* tslint:disable */ + export default json; + /* tslint:enable */ +} diff --git a/packages/instant/src/index.ts b/packages/instant/src/index.ts new file mode 100644 index 000000000..54059cdad --- /dev/null +++ b/packages/instant/src/index.ts @@ -0,0 +1 @@ +export { ZeroExInstant, ZeroExInstantProps } from './components/zero_ex_instant'; 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)); +}; |