Answers for "javascript input text on enter press and input focused react"

2

capture enter button react input

const Enter = () => {
  	const handle = () => console.log('Enter pressed');
  
	return <input type="text" onKeyDown={e => e.key === 'Enter' && handle} />;
};
Posted by: Guest on February-11-2021

Code answers related to "javascript input text on enter press and input focused react"

Code answers related to "Javascript"

Browse Popular Code Answers by Language