Skip to content

Commit

Permalink
Fix performance for keys
Browse files Browse the repository at this point in the history
Closes GH-703.
Closes GH-738.

Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com>
Reviewed-by: Merlijn Vos <merlijn@soverin.net> 
Reviewed-by: Remco Haszing <remcohaszing@gmail.com>
  • Loading branch information
wooorm committed Apr 12, 2023
1 parent 184a1a3 commit c289176
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/ast-to-react.js
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 c289176

Please sign in to comment.