-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
/
docgen.snapshot
44 lines (41 loc) · 968 Bytes
/
docgen.snapshot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`react component properties 9586-js-react-memo 1`] = `
"import React from 'react';
import PropTypes from 'prop-types';
function Button({
label,
onClick
}) {
// eslint-disable-next-line react/button-has-type
return /*#__PURE__*/React.createElement(\\"button\\", {
onClick: onClick
}, label);
}
Button.propTypes = {
label: PropTypes.string.isRequired,
onClick: PropTypes.func.isRequired
};
const MemoButton = React.memo(Button);
export const component = MemoButton;
Button.__docgenInfo = {
\\"description\\": \\"\\",
\\"methods\\": [],
\\"displayName\\": \\"Button\\",
\\"props\\": {
\\"label\\": {
\\"type\\": {
\\"name\\": \\"string\\"
},
\\"required\\": true,
\\"description\\": \\"\\"
},
\\"onClick\\": {
\\"type\\": {
\\"name\\": \\"func\\"
},
\\"required\\": true,
\\"description\\": \\"\\"
}
}
};"
`;