Skip to content

Commit

Permalink
Merge pull request electrode-io#5 from electrode/scope-reactdom
Browse files Browse the repository at this point in the history
Add ReactDOM to default `localScope`
  • Loading branch information
dstevensio committed Jul 27, 2016
2 parents 104e978 + a83e08a commit 0517c8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/electrode-demo-index/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component } from "react";
import ReactDOM from "react-dom";
import Playground from "component-playground";
import assign from "object-assign";

Expand All @@ -22,7 +23,7 @@ export default class ElectrodeDemoIndex extends Component {

render() {

const localScope = assign({ React }, this.props.scope || {}, this.state.libraryScope);
const localScope = assign({ React, ReactDOM }, this.props.scope || {}, this.state.libraryScope);
const components = this.state.components;

return (
Expand Down

0 comments on commit 0517c8d

Please sign in to comment.