@fuxi-eng/header-and-footer
TypeScript icon, indicating that this package has built-in type declarations

0.0.21 • Public • Published

说明

本项目为公共 header and footer 项目。

传参

  • TODO

使用方法

  1. 安装
npm install @fuxi-eng/header-and-footer
  1. 引入组件
import { Header } from "@fuxi-eng/header-and-footer";
  1. 使用组件

hello.jsx

import React from "react";
import { Header } from "@fuxi-eng/header-and-footer";

const Hello = () => {
  return (
    <div>
      <Header />
      <h1>Hello from header and footer</h1>
    </div>
  );
};

export default Hello;

本地开发

  1. 安装依赖
npm install
  1. 启动项目
npm run dev
  1. 本地测试
  • 在项目目录下执行
npm link
  • 在其他项目中执行
npm link @fuxi-eng/header-and-footer
  • 在其他项目中引入
import { Header } from "@fuxi-eng/header-and-footer";

发布

以下两个命令选择一个执行即可:

# interactive and allows you to confirm each task before execution
npm run release
# or auto increase version on patch
npm run release-auto;

# more info: https://github.com/release-it/release-it

Package Sidebar

Install

npm i @fuxi-eng/header-and-footer

Weekly Downloads

4

Version

0.0.21

License

ISC

Unpacked Size

215 kB

Total Files

9

Last publish

Collaborators

  • fuxi-fe