react-sizeme icon indicating copy to clipboard operation
react-sizeme copied to clipboard

basic width not working

Open CryptoGraffe opened this issue 5 months ago • 0 comments

When I use this very simple example, I always get no size. If I jsonify the size object it is {}. I started with rich components and all sorts of things and simplified it down to this.

I'm using:

"react-sizeme": "^3.0.2"`
"react": "^18.2.0",
 "react-dom": "^18.2.0",

Here is my simple example

<SizeMe>
  {({ size }) => <div>hello {size.width ?? 'no size'}</div>}
</SizeMe>

CryptoGraffe avatar Sep 08 '24 00:09 CryptoGraffe