i am using ROJO and testing out roact JSX in a .tsx file, but Instance.new fails to create specified component on run. correct me if i’m wrong, but my best guess is that roblox used to allowed to instantiate objects regardless of class naming case, but since now you must word in correct case (imagelabel, screengui) → (ImageLabel, ScreenGui) it broke roact.
here’s tutorial for trying it out:
I found that the issue was with ts compiler. Solved by readding .tsx files to trigger recompilation after using these settings in tsconfig.json:
{
"compilerOptions": {
"jsx": "react",
"jsxFactory": "Roact.jsx",
"jsxFragmentFactory": "Roact.Fragment",
},
}
Hi! My tutorial is a bit aged nowadays, you should prefer using the React package (over Roact) since it has better optimization and a 1:1 API with the React you see in the web.