-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass in components for <Body /> <HeadComponents /> and <PostBodyComponents /> #1121
Comments
I am not sure what you mean by this. Care to explain a little further maybe? |
Right now an html.js looks like (greatly simplified)
Instead it could be:
Much simpler. |
I was actually thinking more along the lines of if they're not passed in as props, where do they come from? But I am guessing they would simply be imported and themselves get the content from the store. It's def much cleaner to look at :) |
Oh they would be passed in as props. Sorry for not making that clear.
…On Wed, Jun 7, 2017, 9:56 AM Thijs Koerselman ***@***.***> wrote:
I was actually thinking more along the lines of if they're not passed in
as props, where do they come from? But I am guessing they would simply be
imported and themselves get the content from the store.
It's def much cleaner to look at :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1121 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEVh9xMEvHdxgawGs7Z2NIH20dvknhbks5sBtZZgaJpZM4Ny7BO>
.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This got done a long time ago :-) |
@KyleAMathews I am little puzzled on how I would pass values to |
@iiroj suggested this to me and I really like it.
That'd make things in
html.js
more "react-y" and more foolproof as it'd make these things opaque data containers as generally they should be.I think we could leave the existing props
headComponents
,postBodyComponents
, andbody
for backwards compatability + people might want to manipulate their data before rendering.The text was updated successfully, but these errors were encountered: