Skip to content

Commit

Permalink
fix: updating eventListener code
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Dunn committed Feb 13, 2018
1 parent 4f6efda commit e31fffb
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions demo/eventing.js
Original file line number Diff line number Diff line change
@@ -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));

0 comments on commit e31fffb

Please sign in to comment.