import React from 'react'; class Window extends React.Component { constructor(props) { super(props); this.container = React.createRef(); } componentWillReceiveProps(next) { } componentDidMount() { this.container.current.appendChild(this.props.window.canvas) } render() { let { x, y, width, height, show } = this.props.window; return (
) } } export default Window;