mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-11 16:17:25 +02:00
Remove keys warning when loading scripts (#244)
This commit is contained in:
parent
1efce743dd
commit
bb48bb4f0c
1 changed files with 6 additions and 2 deletions
|
@ -83,9 +83,13 @@ class Head extends React.Component {
|
|||
<link rel="stylesheet" href={source} />
|
||||
);
|
||||
})}
|
||||
{this.props.config.scripts && this.props.config.scripts.map(function(source) {
|
||||
{this.props.config.scripts && this.props.config.scripts.map(function(source, idx) {
|
||||
return (
|
||||
<script type="text/javascript" src={source} />
|
||||
<script
|
||||
type="text/javascript"
|
||||
key={"script" + idx}
|
||||
src={source}
|
||||
/>
|
||||
);
|
||||
})}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue