Rename project for AdCloud tracking and ad delivery

This commit is contained in:
2026-09-15 19:04:53 +08:00
parent 592bf1a220
commit 25c63a6f2d
3 changed files with 9 additions and 7 deletions
+6 -4
View File
@@ -1,6 +1,8 @@
# React SDK
# AdCloud React SDK
使用 TypeScript 开发的 React SDK,配套 `backend-server`。
面向开发者和 coding agent 的广告云埋点与广告推送系统 React SDK,配套 `adcloud-server`。
当前为开发脚手架,提供健康检查客户端及 React Hook;埋点与广告推送功能待实现。
## 开发
@@ -15,11 +17,11 @@ npm run build
本包尚未发布。先运行 `npm run build`,再在 React 项目中安装本地目录:
```sh
npm install /absolute/path/to/react-sdk
npm install /absolute/path/to/adcloud-react-sdk
```
```tsx
import { useHealth } from "@entroia/react-sdk";
import { useHealth } from "@entroia/adcloud-react-sdk";
export function ServerStatus() {
const { data, error, loading } = useHealth("http://localhost:8000");