Add components examples in README.md files - Part 2#8338
Conversation
|
I don't think we should expose |
|
@mmtr - whatever works in terms of the name. My only concern would be the need to document it somewhere so we could point contributors to a link which explains how examples should be structured to ensure we can consume them from docs. ServerSideRenderer probably should be moved to the editor or standalone package, @youknowriad any thoughts on that? This is similar to CodeEditor tied to WordPress instance. |
|
@gziolo this should be ready to review 🎉 |
gziolo
left a comment
There was a problem hiding this comment.
I had only one comment. I haven't tested code examples as it would be too time-consuming. Let's move forward and open a follow-up when we discover any issues. Those are only docs after all 😃
I had one question where I think we should skip providing props to the example component.
There was a problem hiding this comment.
thanks! I won't include it then in Calypso
There was a problem hiding this comment.
one example less to include in Calypso
There was a problem hiding this comment.
Should it provide some dummy attributes to make it work without any attributes provided?
There was a problem hiding this comment.
yep, it makes sense. I forgot this one because it's not being included in Calypso.
This continues #8267
The aim of this PR is to include working examples in the components documentation.
Components (Part 2)
ServerSideRender