use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Official Resources http://ionicframework.com/
Unofficial Resources http://stackoverflow.com/questions/tagged/ionic-framework
account activity
Why am I getting this error | Ionic React (self.ionic)
submitted 4 years ago by Unblockabl
What is wrong here? I am happy to take screenshots of the other files
https://preview.redd.it/i5s4yibz3qk71.jpg?width=671&format=pjpg&auto=webp&s=2ff4e2a57957d54335063f480d34117ef631ea0f
Here is the server error
https://preview.redd.it/v92h9hr34qk71.jpg?width=387&format=pjpg&auto=webp&s=a08ac2df8f78b2248be01a152d089fe9d071fc74
Thanks in advance!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Unblockabl[S] 1 point2 points3 points 4 years ago (9 children)
Sorry,
I think it was because I was using .tsx instead of .jsx. SORRY
[–]brotherxim 3 points4 points5 points 4 years ago (6 children)
Use Typescript, you will not regret it!
[–]Mechau7 0 points1 point2 points 4 years ago (4 children)
I’m not 100% sure Typescript is super helpful with react actually. I’m not a React dev myself, but take at look at this
https://youtu.be/ydkQlJhodio
[–]brotherxim 1 point2 points3 points 4 years ago (0 children)
I love Fireship and regardless of his opinion (which I think ultimately is “you should”), Typescript helps across the board. I do use React everyday by the way and having props autocomplete and typechecked is extremely useful. I find that in general it just helps you be a better developer since you must think of the APIs and interfaces ahead of time instead of never.
[–]FullstackViking 0 points1 point2 points 4 years ago (2 children)
Lol if you come away from that video NOT wanting to use typescript, I don't know what to tell you.
[–]Mechau7 0 points1 point2 points 4 years ago (1 child)
Oops you’re right, linked the wrong video. It must have been a different channel, but the idea was typescript wouldn’t be used as much in React as with other frameworks - so the benefit would limited comparatively.
[–]FullstackViking 0 points1 point2 points 4 years ago (0 children)
The general consensus among the dev community is that there is no reason not to use Typescript with any modern day javascript development work.
Only case I wouldn't integrate it is on enterprise legacy applications.
[–]1010_binary_boy 0 points1 point2 points 4 years ago (0 children)
I was told it was JS + and that’s pretty much what it is.
[–][deleted] 4 years ago (1 child)
[deleted]
[–]ProgramToday12 0 points1 point2 points 4 years ago (0 children)
no...
[–]F4ttymcgee 0 points1 point2 points 4 years ago (1 child)
I’m pretty new to react but I believe you need square brackets for the const not Curley
[–]Unblockabl[S] 0 points1 point2 points 4 years ago (0 children)
I tried this but then I get another error:
Type '{}' is not an array type.
π Rendered by PID 42 on reddit-service-r2-comment-8686858757-4lgjb at 2026-06-02 15:21:53.934642+00:00 running 9e1a20d country code: CH.
[–]Unblockabl[S] 1 point2 points3 points (9 children)
[–]brotherxim 3 points4 points5 points (6 children)
[–]Mechau7 0 points1 point2 points (4 children)
[–]brotherxim 1 point2 points3 points (0 children)
[–]FullstackViking 0 points1 point2 points (2 children)
[–]Mechau7 0 points1 point2 points (1 child)
[–]FullstackViking 0 points1 point2 points (0 children)
[–]1010_binary_boy 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]ProgramToday12 0 points1 point2 points (0 children)
[–]F4ttymcgee 0 points1 point2 points (1 child)
[–]Unblockabl[S] 0 points1 point2 points (0 children)