flexdinesh / react-socks

🎉 React library to render components only on specific viewports 🔥
MIT License
426 stars 29 forks source link

Add support for custom tagName & className #11

Closed dator-frank closed 5 years ago

dator-frank commented 5 years ago

Breakpoint component takes tagName (string, default 'div') and className (string, default '') as props and passes them to the rendered breakpoint wrapper. Useful e.g. for tables with responsive td's.

flexdinesh commented 5 years ago

@wrngfrnk Thanks for this PR. I've published v1.0.1 with this and a few other changes. I've added you to the contributors list as well. Thanks again.