18 lines
414 B
TypeScript
18 lines
414 B
TypeScript
import { StrictMode } from "@rbxts/react";
|
|
import Profile from ".";
|
|
import React from "@rbxts/react";
|
|
import { createRoot } from "@rbxts/react-roblox";
|
|
import { Players } from "@rbxts/services";
|
|
|
|
export = function (target: Instance) {
|
|
const root = createRoot(target);
|
|
root.render(
|
|
<StrictMode>
|
|
<Profile player={Players.GetPlayers()[0]} />
|
|
</StrictMode>,
|
|
);
|
|
return function () {
|
|
root.unmount();
|
|
};
|
|
};
|