We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f28597e commit b428b92Copy full SHA for b428b92
src/utils/generatePropsFromAttributes.js
@@ -10,7 +10,7 @@ import inlineStyleToObject from './inlineStyleToObject';
10
export default function generatePropsFromAttributes(attributes, key) {
11
12
// generate props
13
- const props = Object.assign({}, htmlAttributesToReact(attributes), { key });
+ const props = Object.assign({ key }, htmlAttributesToReact(attributes));
14
15
// if there is an inline/string style prop then convert it to a React style object
16
// otherwise, it is invalid and omitted
0 commit comments