Skip to content

Instantly share code, notes, and snippets.

@raphaeldealmeida
Created July 15, 2023 13:00
Show Gist options
  • Save raphaeldealmeida/c4dc371bb465a45f8a0f35c17e9cfd36 to your computer and use it in GitHub Desktop.
Save raphaeldealmeida/c4dc371bb465a45f8a0f35c17e9cfd36 to your computer and use it in GitHub Desktop.
Generic mithril js component snippet
import m from "mithril"
type TProps = {}
const MyComponent: m.ClosureComponent<TProps> = () => {
return {
view: () =>
{
return <>
MyComponent
</>
}
}
}
export default MyComponent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment