💻 React !
This commit is contained in:
17
src/shared/gui/players_board/profile/index.story.tsx
Normal file
17
src/shared/gui/players_board/profile/index.story.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
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();
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user