Renaming content
to children
#539
-
Over the past couple of weeks, I've been thinking about whether it would make sense to rename the What do you think? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I like the idea of renaming My only nitpick is that react's Semi-related: I have been wondering if we could utilize |
Beta Was this translation helpful? Give feedback.
I like the idea of renaming
content
.My only nitpick is that react's
children
returns an array of components and we return a string. I wonder if something likeblock_content
might help clarify that it's coming from the block given when rendered, but is also a string?Semi-related: I have been wondering if we could utilize
yield
instead of assigning to an ivar/accessor which would eliminate the name completely from the public API. But there's trade-offs there and that might be a separate discussion. 😄