Skip to content

Commit

Permalink
Fix performance for keys
Browse files Browse the repository at this point in the history
Closes GH-703.
  • Loading branch information
wooorm committed Apr 11, 2023
1 parent 184a1a3 commit 8715d7b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/ast-to-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,7 @@ function toReact(context, node, index, parent) {
)
}

properties.key = [
name,
position.start.line,
position.start.column,
index
].join('-')
properties.key = index

if (name === 'a' && options.linkTarget) {
properties.target =
Expand Down

0 comments on commit 8715d7b

Please sign in to comment.