React component that wraps the child component in (a div with width / height matching that of the current / updated window size).
npm install --save react react-dom react-resize
import React from 'react'
import { render } from 'react-dom'
import Resize from 'react-resize'
class App extends React.Component {
render() {
return (
<Resize>
Hello React Resize
</Resize>
)
}
}
render(<App/>, document.getElemenById('myApp'))
Carlos Cuatin [email protected]