18 lines
482 B
React
18 lines
482 B
React
/**
|
||
* 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>
|
||
);
|
||
}
|