The visual code editor for designing and building digital products—without writing code.


Component Nesting

July 8, 2019 at 2:45pm

Component Nesting

July 8, 2019 at 2:45pm
Are there plans for component nesting?
One of the most powerful things about React, IMO, is the ability to nest your components within other components. Would be great if we could do the same in Modulz.
I realize this opens a can of worms with variant and value overrides for the nested components, but the current copy/pasting groups of components is less than ideal.

July 15, 2019 at 2:32am
Hey Lee,
Yep, it can get quite cumbersome at the moment :)
We're thinking through a bunch of ways to improve this.
  • Simple grouping might help layer management.
  • A master/instance implementation might help too. But I think it's a fairly primitive way to think about things.
  • Composite components would be a huge improvement, where you could nest components, give the composite a name, then pass data down into the nested components.
We're working on this stuff. I can't give any ETA for any of it at the moment though.
  • reply
  • like