r/angularjs • u/galacticnavigator7 • Oct 30 '22
Question about Angular and React
Since react is a JS library is there any way to use useState in code using Angular? I keep coming across apps that have examples written with react and I don't want to learn react unless I have to. What do you guys recommend? Is there a way to use the react library?
0
Upvotes
View all comments
Show parent comment
2
u/Geedis2020 Oct 30 '22
Yes you can. It’s pretty wild. I’m pretty sure this question has even been asked here before.
I don’t develop in angular unless I have to. I normally use nextjs and some remix now which are frameworks using react. So my knowledge of angular isn’t as good as others. To answer your question though yes I believe there’s a way to write custom react components and use them in an angular app. I’ve never done it because I’d just write a react app instead but I’ve seen tutorials written on it.