You should call preventDefault function from onClick event like this:
class App extends React.Component {
onClick = (e) => {
e.preventDefault()
console.log('onclick..')
}
render() {
return (
Click me
)
}
}
You can use something like this particular to your use case:
const renderEmails = ({ fields }) => (
...
{
e.preventDefault()
fields.push()
}}>Add Email
...
)