Created
July 15, 2023 13:00
-
-
Save raphaeldealmeida/c4dc371bb465a45f8a0f35c17e9cfd36 to your computer and use it in GitHub Desktop.
Generic mithril js component snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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