Skip to content

Commit

Permalink
fix(anchor-links): use react children api to handle anchorlink childr…
Browse files Browse the repository at this point in the history
…en (#842)

Co-authored-by: Vince Picone <vpicone@gmail.com>
  • Loading branch information
jendowns and vpicone authored May 12, 2020
1 parent 5030d1d commit 9895328
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class AnchorLinks extends React.Component {

return (
<ul className={classNames}>
{children.map((link, i) => (
{React.Children.map(children, (link, i) => (
<li key={i} className={item}>
{link}
</li>
Expand Down

1 comment on commit 9895328

@vercel
Copy link

@vercel vercel bot commented on 9895328 May 12, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.