1. 使用您喜歡的套件管理器安裝 npm 套件

# npm
npm install --save @notice-org/react

# yarn
yarn add @notice-org/react

# pnpm
pnpm install @notice-org/react






🌱

2. You can now import and use the Notice component everywhere

import { Notice } from '@notice-org/react'

const AnyReactComponent = () => {
  return <Notice pageId="{{{project}}}" />
}







3. 您可以添加任何這些屬性

<Notice
  pageId="string" // required
  lang="string" // optionnal
  theme="light | dark" // optionnal
  navigationType="query | memory" // default to memory
/>

// You can also pass children to this component that will act as a loading state
<Notice pageId="...">
  <span>Loading...</span>
</Notice>







示例沙盒


由 Notice 創建