Is there a good way to preventDefault when dispatching an action in React/Redux?
问题 I'm dispatching an action that runs a reducer that pushes some text to my redux state on form submit. I know in Vue you can preventDefault right in the DOM but I haven't seen anything in React that would make this seem possible. I'm wondering the best way to prevent the form from submitting so Redux can do it's thing. My code is below. Thanks! actions/index.js export function addLink(text) { return { type: 'ADD_LINK', text } } reducers/index.js (ADD_LINK) is the function I'm running /*eslint