Open aalin opened 1 year ago
Components that don't implement any callbacks or have state should be implemented somehow. Not exactly sure how though. Not sure how styles would work with this.
Some sketches:
:ruby Greeter = StatelessComponent.define <<~HAML %p Hello #{$name} :css p { font-weight: bold; } HAML def greet(name) = <<~HAML %p Hello #{name} HAML %div %Greeter(name="Foo") %Greeter(name="Bar") = greet("Foo")
Components that don't implement any callbacks or have state should be implemented somehow. Not exactly sure how though. Not sure how styles would work with this.
Some sketches: