前言
我是歌谣 我有个兄弟 巅峰的时候排名c站总榜19 叫前端小歌谣 曾经我花了三年的时间创作了他 现在我要用五年的时间超越他 今天又是接近兄弟的一天人生难免坎坷 大不了从头再来 歌谣的意志是永恒的 放弃很容易 但是坚持一定很酷
导语
ant design锚点组件
编辑
核心代码
``` import React, { Component } from 'react'; import { Row, Col, Anchor } from 'antd'; const { Link } = Anchor; export default class BaseAnchor extends Component { constructor(props) { super(props); this.state = {}; } render() { const { anchors = [], //锚点数组,link-节点id,title-显示文字 content, //左侧内容 ...restProps } = this.props; return (