menu

Imba

The language for building next-gen web applications

Channels
Team

Is there a way to create multiple components in the same file?

May 30, 2019 at 4:54pm

Is there a way to create multiple components in the same file?

May 30, 2019 at 4:54pm

May 30, 2019 at 5:24pm
sure
like-fill
1
  • reply
  • like
Ah thanks, I just saw the modules section of the docs!
like-fill
1
  • reply
  • like

May 31, 2019 at 2:21pm
Just do another tag on the same document.
tag componentName < h1
def render
<self> "Hello World!"
tag App
def render
<self> <componentName>
Edited
like-fill
1
  • reply
  • like