Skip to content

Instantly share code, notes, and snippets.

View AndrewBuntsev's full-sized avatar

Andrei Buntsev AndrewBuntsev

View GitHub Profile
@gaearon
gaearon / MyResponsiveComponent.js
Created November 1, 2018 10:05
Examples from "Making Sense of React Hooks"
function MyResponsiveComponent() {
const width = useWindowWidth(); // Our custom Hook
return (
<p>Window width is {width}</p>
);
}