Replies: 1 comment
-
Hi, @janat08! In my environment, I did https://github.com/Desdaemon/typed-htmx#usage {
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "hono/jsx",
"types": [
"typed-htmx"
]
}
} Alternatively, if you wish to extend the interface as shown in the link, you can use a namespace “Hono” to write the following. declare namespace Hono {
interface HTMLAttributes {
"hx-get"?: string;
}
}
<html lang="en">
<body>
<button hx-get="/info">Get Info</button>
</body>
</html> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Desdaemon/typed-htmx#1 (comment)
Trying to extend hono/jsx with typed-htmx. The one where I can add typed-htmx into types field isn't doing anything.
Beta Was this translation helpful? Give feedback.
All reactions