Remix
本页提供 JGuang UI 技术内容、中文导航与术语适配。
中文模式已适配导航、标题、简介、目录与常用章节名称。翻译状态:部分完成;技术正文目前仍为英文。
Note: This guide is for Remix. For React Router, see the React Router guide.
Create project
Start by creating a new Remix project using create-remix:
npx create-remix@latest my-app
Run the CLI
Run the JGuang UI Registry init command to set up your project:
Use the JGuang UI Registry URL provided on /systems/jguang-ui#install.
That's it
You can now start adding components to your project.
Use the JGuang UI Registry URL provided on /systems/jguang-ui#install.
The command above will add the Button component to your project. You can then import it like this:
import { Button } from "~/components/ui/button"
export default function Home() {
return (
<div>
<Button>Click me</Button>
</div>
)
}
来源: installation/remix.mdx
JGuang UI 技术文档。