I worried if I copy and paste like this string to input:
10202, 29292, 29111, 29222, 22822,
How can I delete spaces and commas or any character except numbers and push it to react component state?
my state will be like:
codes: [10202, 29292, 29111, 29222]
On copy paste I know I can use onPaste
method, but don't know how get each item delete commas and push state of course there need to be prevenet duplicate same values.