Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Sep 3, 2024
2 parents 6393197 + 7875583 commit b2bde98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guide/under-the-hood.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ class HelloWorld < Component
end
```

To get this to work, we’ll need to find the point where we yield and make it `yielf(self)`. We could do this in the `div` method, but there’s a better way.
To get this to work, we’ll need to find the point where we yield and make it `yield(self)`. We could do this in the `div` method, but there’s a better way.

When the block comes into `call`, we can wrap it in a new block that yields `self`. This way, it will always yield the component instance even if we forget to.

Expand Down

0 comments on commit b2bde98

Please sign in to comment.