We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9eeef55 commit 1017b25Copy full SHA for 1017b25
lib/attributes-to-props.js
@@ -12,10 +12,11 @@ DOMProperty.injection.injectDOMPropertyConfig(
12
/**
13
* Makes attributes compatible with React props.
14
*
15
- * @param {Object} attributes - The attributes.
16
- * @return {Object} - The props.
+ * @param {Object} [attributes={}] - The attributes.
+ * @return {Object} - The props.
17
*/
18
-function attributesToProps(attributes = {}) {
+function attributesToProps(attributes) {
19
+ attributes = attributes || {};
20
var props = {};
21
var propertyName;
22
var propertyValue;
0 commit comments