Which way is preferred to use custom component in ...
# tornadofx
s
Which way is preferred to use custom component in DSL? Operator
+=
or create custom builder function?
t
@snrostov either works, but I like creating my own DSLs
s
@thomasnield, I have some experiment with alternative approach to DSL. The main idea is that all components are fist class citizens in DSL, so no builder functions required. Some examples here: https://htmlpreview.github.io/?https://raw.githubusercontent.com/snrostov/ui-dsl/master/index.html#hello-widgets This examples is for React, but library is cross platform: for now react, javafx, and I'm working with native rendering pipeline built on top of skia. Rendering pipeline is mainly inspired from https://flutter.io/