status-im / pluto

https://status-im.github.io/pluto/
12 stars 3 forks source link

It should be possible to use view inside another view #104

Closed flexsurfer closed 5 years ago

flexsurfer commented 5 years ago

If you have big views you may want to break them into small views, or make component and reuse it in different views, so it should be possible to use one view in another

views/component
(let [{prop1 :prop1} propertoes]
[text prop1])

views/view1
[component {:prop1 "Test"}]

views/view2
[component {:prop1 "Test 2"}]