dom-location
React hook for subscribing to window size
Note: This is using the new React Hooks API Proposal which is subject to change until React 16.7 final.
You'll need to install
react
,react-dom
, etc at^16.7.0-alpha.0
Install
yarn add dom-location
or
npm i -s dom-location
Usage
; { let element = document0; let obj = ; console; return <div> <h1>111</h1> </div> ;} ReactDOM;