问题描述
我正在开发目标网页,您需要输入电子邮件以确认并接收更多信息,我想创建带有react toastify的通知我该怎么办?谢谢
import React,{ Component } from 'react'
import { Link } from 'react-router-dom'
import { ToastContainer,toast,Zoom,Bounce } from 'react-toastify'
class Notify extends Component {
state = {
email: ''
}
render() {
toast.error('Please enter your email!')
toast.success('You will get notified!')
return (
<div className='notify-case'>
<div className='notify-box'>
<h1 className='notify-text'>We're revamping our website</h1>
<Link to='/'><i class="fas fa-times"></i></Link>
</div>
<div className='notify'>
<h6 className='sign-text'>Sign up to be the first to know:</h6>
<input type='email' placeholder='Enter your email here*' name='email' />
`````
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)