main
state
const state = onChange(initialState, (path, curVal, prevVal) => { switch (path) { case 'form.urlState': if (curVal === 'valid') { input.classList.remove('is-invalid');