[SOLVED] Confused about OOP
I have method like this which works weirdly
```ts
addItem(Item: new (...args: never[]) => Item) {
if (this.item === undefined) {
this.item = new Item();...
Mocking `loadstring` doesn't work with ui labs with the global mock loadstring
```ts
//test.story.ts
import fixLoadModule from "common/shared/utils/fix-load-module";
import { runTests } from "common/shared/utils/run-tests";
import { FunctionStory } from "@rbxts/ui-labs";...

New to charm, how would i go about turning this into a state manager?
```ts
import { atom } from "@rbxts/charm";
import { Players } from "@rbxts/services";
// Define interfaces for the state...
UI with roblox-ts
Hello! I am new to roblox-ts and I heard about roact for the UI but I see that some tickets have the tag React, and so I am a bit confused on the subject. So I wanted to know what are the good ways or tech to use to make UI with roblox-ts. Thanks in advance!
Using Lastest Jest
The latest vendor uses loadstring, how do you approach writing tests and execute them. I tried littensy's rbxts-jest-test repo and that will give me permission error since
loadstring
is plugin security. If I was to do this in a storybook with react, it would give me this weird blob of string and a "multiple runtime error". I saw littensy referring to this issue and resetting scripts at runtime. But this doesn't really help in terms of running the code without clicking run

What is considered more optimized?
Changing the visible value or making the element optional
ex:
{display && <imagebutton/>}
or
<imagebutton Visible={display} />
...I keep getting this error when trying to publish packages
npm notice Publishing to https://registry.npmjs.org/ with tag latest and public access
npm ERR! code E404
npm ERR! 404 Not Found - PUT https://registry.npmjs.org/@rbxts%2fnext-roblox - Not found
npm ERR! 404
npm ERR! 404 '@rbxts/[email protected]' is not in this registry....
Color wheel in React
Does it make sense to make the handle draggable? If so, how? Oh, and the main question, how to determine the color the handle is on.

How to fix and optimize React UI
I noticed that my react ui is not optimized at all, the game freezes for a second when opening something. I am new to React, so I understand that most likely I wrote something terrible. I am interested in a guide or advice on how to find the cause of delays, optimize it, fix it, etc.
Attempt to call a table value
```ts
import { Manim } from "@rbxts/manim";
import { BaseScene } from "../../scene";
@Manim.Decorators.Scene({...
Is there a way to get all the types, that has specific property in them?
In my case, I need to get all the instances that has
LocalTransparencyModifier
property.React Error when using conditionals
When I use this conditional:
I get a strange error of:...
return <>{render && children}</>;
return <>{render && children}</>;
how can you detect a click that was made outside the required component?
I want to make something like a context menu on the Windows OS desktop, I did the positioning when I click on the frame, but I don’t know how I can detect the click outside of the menu to hide it. Do you have any suggestions?
useEffect() being called before reference is assigned
im making a react roblox ts component that should tween its size when the component is called and created but the useEffect() function is creating the tween before the useRef() is assigned to the frame

Jecs Cleanup Attributes Help
I'm struggling to figure out how Jec's component traits work. I have a state machine like system that attaches a tag to an entity called "DoingATest".
I've setup a function that runs on startup to setup the cleanup:
```ts
print("init cleanup");...