Replies: 1 comment 2 replies
-
The
If you want interactive client-side components (with If you only want to use JSX to generate static HTML, then you can use the JSX or JSX Preact plugins and the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi 👋 Lume seems great, thanks for the project!
I've looked through the docs and issues and can't find an example of using TSX as a component without making the entire app as React like the todo example.
The docs have an example of using a component from JSX, but no example for creating one. Attempts to create a
_component/test_button.tsx
(or.jsx
) resulted in a page that renders without any errors, but does not render the component.Then I found How to write client side (javascript) code ? #396 which suggested using the
esbuild
plugin, which I set upbut now when I attempt to run, I get
Component "test_button" not found
.Stack trace
I renamed
_components/test_button.tsx
to_components/test_button.njk
it will print out the literal text of the file, which is just to prove to myself that the file was set up correctly.Could you provide some guidance for how this should work?
Files
index.njk
_config.ts
deno.json
_components/test_button.tsx
Beta Was this translation helpful? Give feedback.
All reactions