Created
March 16, 2019 02:43
-
-
Save catmando/19769b4db58c77012f5908bf7e2d796d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TodoItem < HyperComponent | |
param :item | |
fires :delete_item | |
render(DIV, class: 'ToDoItem') do | |
P(class: 'ToDoItem-Text') { @Item } | |
BUTTON(class: 'ToDoItem-Delete').on(:click) { delete_item! } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment