This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
Read the current input value via inputRef.current.value instead of maintaining it in state.
You've completed the free preview. Subscribe to unlock every lesson in every course.