@jonathanleelx/react-resizable
v0.0.4
Published
An react resizable container component.
Downloads
6
Maintainers
Readme
react-resizable
Made with create-react-library
Install
use npm
npm install --save @jonathanleelx/react-resizable
use yarn
yarn add @jonathanleelx/react-resizable
Usage
import React, { Component } from 'react'
import ResizableContainer from '@jonathanleelx/react-resizable'
import '@jonathanleelx/react-resizable/dist/index.css'
const Flex = () => {
return <div>flex</div>
}
const Fixed = () => {
return <div>fixed</div>
}
class App extends Component {
render() {
return <ResizableContainer flex={<Flex />} fixed={<Fixed />} />
}
}
License
MIT © JonathanLee-LX