digidem / react-dimensions

[Looking for maintainers]
http://lab.digital-democracy.org/react-dimensions/
450 stars 77 forks source link

Allow element type of wrapper to be configurable #72

Open elisechant opened 7 years ago

elisechant commented 7 years ago

Problem

To use this module within svg, we need to be able to use <g> instead of <div> for wrappers.

Expected

Make

configurable at https://github.com/digidem/react-dimensions/blob/master/index.jsx#L170 to other DOM element types

Code in question

 return (
          <div style={wrapperStyle} ref='wrapper'>