Skip to content

Commit

Permalink
Components: Fix QueryEmbed README example
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Feb 5, 2020
1 parent 59fd5fa commit f6a1096
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions client/components/data/query-embed/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,17 @@ Render the component, passing `siteId` and `url`. It does not accept any childre
import React from 'react';
import QueryEmbed from 'components/data/query-embed';

export default function MyListOfEmbeds( { embeds } ) {
export default function MyEmbed( { embed } ) {
return (
<div>
<QueryEmbed
siteId={ 3584907 }
taxonomy="category" />
{ embeds.map( ( embed ) => {
return (
<div key={ embed.embed_url }>
{ embed.result }
</div>
);
} }
url="https://www.facebook.com/20531316728/posts/10154009990506729/"
/>

<div key={ embed.embed_url }>
{ embed.result }
</div>
</div>
);
}
Expand Down

0 comments on commit f6a1096

Please sign in to comment.