Skip to content

Instantly share code, notes, and snippets.

@caspg
Created December 10, 2016 19:55
Show Gist options
  • Save caspg/86a073aebbca0da555a14f4f0d14e31c to your computer and use it in GitHub Desktop.
Save caspg/86a073aebbca0da555a14f4f0d14e31c to your computer and use it in GitHub Desktop.
// ...
import ResponsiveWrapper from '../ResponsiveWrapper'
class Chart extends Component {
// ...
render() {
// ...
const svgDimensions = {
width: Math.max(this.props.parentWidth, 300),
height: 500
}
// ...
}
}
export default ResponsiveWrapper(Chart)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment