rossrobino / domco

Minimal Full-Stack JavaScript Framework
https://domco.robino.dev
MIT License
30 stars 0 forks source link

React or JSX? #12

Open lassejlv opened 3 weeks ago

lassejlv commented 3 weeks ago

Wil domco support react or jsx in the feature?

rossrobino commented 3 weeks ago

Hi @lassejlv

I need to add some more examples to the docs or template to the create script.

You can use JSX and React with domco right now. If you used the create script, change your +server file to .jsx/.tsx extension and it will work using hono/jsx. Here's an example of what your +server file would look like: Hono JSX Usage

Remove the "jsxImportSource": "hono/jsx" from your tsconfig to default to React instead.

Here are steps to migrate an existing Vite + React app to use domco.

Let me know if that answers your question, thanks for your interest in the project!

lassejlv commented 3 weeks ago

Hi, thanks for the help. It would be great with a template or docs about it. Keep up the good work 🙂