src/handlers.js
Function handleForm
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const handleForm = (el, stateIn) => {
el.preventDefault();
const state = stateIn;
const formData = new FormData(el.target);
const newURL = formData.get('inputURL');