Skip to content

Allow bigint to be passed into value #869

@aryzing

Description

@aryzing

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()} />
);

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