For React
Install the library
npm i @aut-labs/d-aut --save
Import the initialization function in the App.js/tsx (or index.js/tsx)
import { Init } from '@aut-labs/d-aut';
Call the Init function at the start of your project
Init();
Add the custom HTML tag and populate the dao-expander property
import './App.css';
import { Init } from '@aut-labs/d-aut;
function App() {
useEffect(() => {
Init();
}, []);
return (
<div>
<d-aut dao-expander="0x94C5A2d8B75D139FE02180Fd7Ce87EC55B01b358"></d-aut>
</div>
);
}
export default App;
Last updated