添加 agentation 成功
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Agentation 挂载入口(https://github.com/benjitaylor/agentation)
|
||||
* 在页面底部渲染可视化反馈工具栏,供 AI 编码代理定位元素。
|
||||
*/
|
||||
import React from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import { Agentation } from 'agentation';
|
||||
|
||||
const rootEl = document.getElementById('agentation-root');
|
||||
if (rootEl) {
|
||||
const root = createRoot(rootEl);
|
||||
root.render(
|
||||
<React.StrictMode>
|
||||
<Agentation />
|
||||
</React.StrictMode>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user