Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const App = () => {
const formData = useF1(initialForm);
const [addFriend, removeFriend] = arrayUtils(formData.friends, '');
console.log(formData);
return (
<form>
<section>
{formData.friends.map((friend, i) => (
<div>
<button> {removeFriend(i)}}>Remove Friend</button></div></section></form>