Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
willcosgrove committed Sep 3, 2024
1 parent 5a57b90 commit 7875583
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 7875583

Please sign in to comment.