Skip to content

Instantly share code, notes, and snippets.

View bekhzod91's full-sized avatar

Bekhzod bekhzod91

  • Storfox
  • Uzbekistan Tashkent
View GitHub Profile
@bekhzod91
bekhzod91 / App.js
Last active November 4, 2018 13:35 — forked from gaearon/MyResponsiveComponent.js
Examples from "Making Sense of React Hooks"
import React from "react";
import ReactDOM from "react-dom";
import { useWindowWidth } from "./wrapper";
function MyResponsiveComponent({ width }) {
return <div className="App">Window width: {width}</div>;
}
const App = useWindowWidth(WindowResize);