Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic width not working #232

Open
CryptoGraffe opened this issue Sep 8, 2024 · 0 comments
Open

basic width not working #232

CryptoGraffe opened this issue Sep 8, 2024 · 0 comments

Comments

@CryptoGraffe
Copy link

CryptoGraffe commented Sep 8, 2024

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant