
When Should You Use React In 2023?
The React Show
00:00
Using React for HTML 5 Web Components
There's another way to use react and this is something I don't see as often but you can do it. You can still have regular HTML documents that you build in this traditional way. But within that you might have let's say a calendar component which has complicated state management logic. Just writing that in plain JavaScript could get out of hand becomes spaghetti code. This is an argument for HTML 5 web components so what you could do is build this calendar component as an HTML 5 web component that uses react internally.
Transcript
Play full episode