From e31fffb36fe8f8f6a245dd5e779d3dfe0948080b Mon Sep 17 00:00:00 2001 From: Brian Dunn Date: Tue, 13 Feb 2018 15:19:43 -0700 Subject: [PATCH] fix: updating eventListener code --- demo/eventing.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/demo/eventing.js b/demo/eventing.js index d30661f..fb72866 100644 --- a/demo/eventing.js +++ b/demo/eventing.js @@ -1,12 +1,3 @@ -import ReactDOM from 'react-dom'; -import React from 'react'; +import CoachMark from "../index"; -import { default as Component } from '../index'; - - -document.body.addEventListener('o.InitComponent', e => { - ReactDOM.render( - React.createElement(Component, e.detail.props, e.detail.props.children) - , document.getElementById(e.detail.elementId) - ); -}); +document.body.addEventListener('o.InitCoachMark', e => new CoachMark(e.detail));