Skip to content

basic width not working #232

Description

@CryptoGraffe

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>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions