If you're doing something something reasonably small, using preact rather than react and then wrapping it into a web component so you can just ... put it in there ... is a really nice option to have.
(it may not be the right option in any given case, but it's worth knowing it's there even so)