const handleSubmit = (e: any) => { e.preventDefault() props.history.push('/mypath') // указывает путь куда напралять после подтвердения формы } <form onSubmit={handleSubmit}> <button type='submit'>Submit form</button> </form>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter