Last active
March 15, 2017 10:54
-
-
Save mazikwyry/e40b1e65b73bccd236cd9faa97f8431f to your computer and use it in GitHub Desktop.
This file contains hidden or 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 ToDo | |
attr_accessor :body, :id | |
def initialize(id, body) | |
@body = body | |
@id = id | |
end | |
end |
This file contains hidden or 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 ToDoElement < React::Component::Base | |
param :todo, type: Object | |
render do | |
li { params.todo.body } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment