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

Allow bigint to be passed into value #869

Open
aryzing opened this issue Dec 4, 2024 · 1 comment
Open

Allow bigint to be passed into value #869

aryzing opened this issue Dec 4, 2024 · 1 comment

Comments

@aryzing
Copy link

aryzing commented Dec 4, 2024

Given BigInt is widespread at this point, may be worth updating the type of value to accept bigints,

const example1 = (
  <>
    <NumericFormat value={100} /* OK */ />
    <NumericFormat value={100n} /* Type Error */ />
  </>
);

in the meantime, can easily get around this with,

const example2 = (
  <NumericFormat value={(100n).toString()} />
);
@s-yadav
Copy link
Owner

s-yadav commented Dec 25, 2024

Happy to receive a PR for the same.

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

2 participants