Lokymil / react-adaptive

HOC component for adaptive design with React
2 stars 2 forks source link

Export the RenderProps component #2

Open matthis-d opened 5 years ago

matthis-d commented 5 years ago

I think it would be nice to export the ResponsiveWrapper you use for your HOCs in order to have a different way to use your library.

matthis-d commented 5 years ago

I think it's still relevant as a render prop allows someone to inject context (ie current component state without props drilling) into the rendered child from the parent component.

Le ven. 16 nov. 2018 à 15:50, Christophe ARRESTIER notifications@github.com a écrit :

Knowing i add withSize HOC, do you think it's still relevant to export ResponsiveWrapper ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Lokymil/react-adaptive/issues/2#issuecomment-439416340, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOIks1HA29sqPnpNr0RJfyBEaw8WPa_ks5uvtCwgaJpZM4YBWAZ .