title: Can ResizeObserver listen just to width change?
body: <p>I want to trigger ResizeObserver only on width change and not use it if height was changed. Is it possible?</p>
  <p>Example:</p>
  <pre><code>const resizeObserver = new ResizeObserver(setLayout);
  resizeObserver.observe(layout.current);
  
  const setLayout = () =&gt; {/*do something*/}
  </code></pre>