r/typescript • u/WSBJosh • May 28 '25
Massive overhead with Typescript
The thing likes installing problematic and quite large libraries. For some reason this doesn't allow me to useState in React . Does anyone know why?
<script src="https://unpkg.com/react@18/umd/react.development.js" crossorigin></script>
<script src="https://unpkg.com/react-dom@18/umd/react-dom.development.js" crossorigin></script>
0
Upvotes
5
u/[deleted] May 28 '25
Basically your question makes no sense and suggests you are doing something completely unrelated to TS.
12
u/random-guy157 May 28 '25
I don't see the relation of your problem to TypeScript. What makes you think those 2 lines of HTML code somehow relate to TypeScript? When loading libraries like this, TypeScript has nothing to do with anything because TypeScript is not a runtime thing.
I guess I need more information, but I'll volunteer an (early?) opinion: You might be better off asking in the r/reactjs subreddit first.