2021
04-07
04-07
React实现登录表单的示例代码
作为一个Vue用户,是时候扩展一下React了,从引入antd、配置less、router,终于实现了一个简单的登录表单。代码如下:importReactfrom'react';import{Input,Button,message}from"antd";import{UserOutlined,LockOutlined,EyeInvisibleOutlined,EyeTwoTone}from'@ant-design/icons';import'./index.less'classLoginextendsReact.Component{constructor(props){super(props)this.state={username:'',...
继续阅读 >