![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
react
Ritchie___
这个作者很懒,什么都没留下…
展开
-
react开发简单记录
记录一下自己平时使用react用到的地方官方脚手架create-react-appyarn eject暴露配置文件webpack.config.js alias使用less、less module按需引入antd修改antd默认主题、less变量函数组件跟类组件的定义、props的使用// 定义函数组件export default function (props) { ...原创 2020-03-06 16:50:11 · 172 阅读 · 0 评论 -
使用react-split-pane简单记录
概述react-split-pane通俗来说就是个可以拖拽组件大小的库下载yarn add react-split-pane使用import React from 'react';import SplitPane from 'react-split-pane'import './index.css';export default () => { return ( ...原创 2020-02-09 21:42:30 · 4987 阅读 · 1 评论 -
使用js写个数字时钟
实现原理通过Date对象获取当前计算机的系统时间,注册计时器每隔一秒重新获取时间即可格式化时间 function setTime() { const now = new Date(); const year = now.getFullYear(); const month = now.getMonth() + 1; const date = now.getD...原创 2020-02-08 12:55:56 · 774 阅读 · 0 评论 -
styled-components的简单使用方法
安装yarn add styled-components创建样式组件import styled from 'styled-components';const Button = styled.span` padding: 5px 10px; border-radius: 5px; color: #fff; cursor: pointer; background-c...原创 2020-02-08 12:36:08 · 296 阅读 · 0 评论