Can karax integrate arbitrary react components? if not, what are limitations? Are there examples for doing that? The more examples the better.
and vice versa: can react integrate karax components? Note: lack of interoperability was one thing that threw me off with google Dart; I hope karax doesn't have this issue.
I made some progress on that, eg via some code that mixes karax (nim’s version of react) with react packages (obtained via npm) eg google maps, youtube. It kinda works but not very happy with how I did it (hacky). Better solutions welcome.
React has it's own virtual dom and so does Karax. The best thing to do probably would be to parse the JSX in a react template as well as the associated JavaScript and then convert it to equivalent Karax.
Mixing two frontend frameworks isn't really a great idea IMO. You're probably just better off re-writing the React component in Karax.
On the off-chance you're not a bot, you deserve a reply. Welcome to the forums! No one is angry with novice questions, however learning how to attempt to answer such questions yourself with a couple seconds of effort is a valuable skill you should try to cultivate. Below is an example of how I would try to answer your question from your point of view, using your search engine of choice.
Also check out the nim package directory https And as a general rule try not to raise old threads like this.
"Karax is a relatively simple library which leverages Nim's JS backend to allow the development of so called "single page applications" that run in the browser. In this blog post I will explain how its DSL works under the hood."