nishiki-tech / nishiki-frontend

Nishiki is an app for tracking and sharing food inventories within groups for better pantry management.
https://nishiki.tech
MIT License
20 stars 5 forks source link

Replace `NumberInput` functional component with `forwardRef` #178

Closed nick-y-ito closed 8 months ago

nick-y-ito commented 8 months ago

Description

Currently, the NumberInput is defined as an FC (functional component). However, FC does not accept ref as a prop, and it causes an error when using react-hook-form. So, the task of this issue is to update the NumberInput component with forwardRef.

Notes

-