Dace

Dace

  • 文档
  • API
  • 帮助
  • 博客

›API

API

  • <Link>
  • <Head>
  • getInitialProps 方法
  • document.js

<Link>

该组件由 react-router 提供。

可以通过 组件来实现客户端在两个路由间的切换功能,例如下面两个页面:

// src/pages/index.js
import React from 'react';
import { Link } from 'dace';

export default () => <Link to="/about">About</Link>;
// src/pages/about.js
import React from 'react';

export default () => <p>Welcome to About!</p>;
Last updated on 2018-12-14
<Head> →
Dace
文档
教程常见问题API
社区
Stack Overflow反馈
更多
博客GitHubStar
Dace
Copyright © 2018 dace