Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 581 Bytes

README.md

File metadata and controls

26 lines (23 loc) · 581 Bytes

react-resize

React component that wraps the child component in (a div with width / height matching that of the current / updated window size).

Example

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'))

Autor

Carlos Cuatin [email protected]