Skip to content
RED SAG Skills
hardStudy question · answer published in React interview questions, so no pointsreactstatehooks

Putting a function in useState

A developer wants to store a formatter function in state and writes setFormatter(formatINR). formatINR is a function taking a number. What goes wrong?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions