Skip to content

Instantly share code, notes, and snippets.

@crcn
Created July 12, 2020 17:37
Show Gist options
  • Save crcn/7feda4e9b421a3a0dc1102e0285d8c72 to your computer and use it in GitHub Desktop.
Save crcn/7feda4e9b421a3a0dc1102e0285d8c72 to your computer and use it in GitHub Desktop.
<style>
.some-component {
}
</style>
<!-- Components to be used in app -->
<div export component as="SomeComponent" className="some-component">
{children}
</div>
<!-- Preview / documentation starts here -->
#### I'm a header
This is some text. Here's a demo of `SomeComponent`:
<SomeComponent>
Hello world!
</SomeComponent>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment