Skip to content

Commit

Permalink
Add ReactDOM to default localScope
Browse files Browse the repository at this point in the history
For components that do their own rendering.

Fixes electrode-io#4.
  • Loading branch information
Brian Beck committed Jul 27, 2016
1 parent 2c89a83 commit a83e08a
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 a83e08a

Please sign in to comment.