addons/docs/src/frameworks/react/__testfixtures__/js-function-component-inline-defaults-no-propTypes/docgen.snapshot
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`react component properties js-function-component-inline-defaults-no-propTypes 1`] = `
"/* eslint-disable react/prop-types */
import React from 'react';
import { imported } from '../imported';
const local = 'local-value';
/**
* A component that renders its props
*/
export const PropsWriter = ({
numberOptional = 1,
stringOptional = 'stringOptional',
booleanOptional = false,
arrayOptional = ['array', 'optional'],
objectOptional = {
object: 'optional'
},
functionOptional = () => 'foo',
dateOptional = new Date('20 Jan 1983'),
localReference = local,
importedReference = imported,
globalReference = Date,
stringGlobalName = 'top'
}) => /*#__PURE__*/React.createElement(\\"pre\\", null, JSON.stringify({
numberOptional,
stringOptional,
booleanOptional,
arrayOptional,
objectOptional,
functionOptional,
dateOptional,
localReference,
importedReference,
globalReference,
stringGlobalName
}));
export const component = PropsWriter;
PropsWriter.__docgenInfo = {
\\"description\\": \\"A component that renders its props\\",
\\"methods\\": [],
\\"displayName\\": \\"PropsWriter\\",
\\"props\\": {
\\"numberOptional\\": {
\\"defaultValue\\": {
\\"value\\": \\"1\\",
\\"computed\\": false
},
\\"required\\": false
},
\\"stringOptional\\": {
\\"defaultValue\\": {
\\"value\\": \\"'stringOptional'\\",
\\"computed\\": false
},
\\"required\\": false
},
\\"booleanOptional\\": {
\\"defaultValue\\": {
\\"value\\": \\"false\\",
\\"computed\\": false
},
\\"required\\": false
},
\\"arrayOptional\\": {
\\"defaultValue\\": {
\\"value\\": \\"['array', 'optional']\\",
\\"computed\\": false
},
\\"required\\": false
},
\\"objectOptional\\": {
\\"defaultValue\\": {
\\"value\\": \\"{ object: 'optional' }\\",
\\"computed\\": false
},
\\"required\\": false
},
\\"functionOptional\\": {
\\"defaultValue\\": {
\\"value\\": \\"() => 'foo'\\",
\\"computed\\": false
},
\\"required\\": false
},
\\"dateOptional\\": {
\\"defaultValue\\": {
\\"value\\": \\"new Date('20 Jan 1983')\\",
\\"computed\\": false
},
\\"required\\": false
},
\\"localReference\\": {
\\"defaultValue\\": {
\\"value\\": \\"'local-value'\\",
\\"computed\\": false
},
\\"required\\": false
},
\\"importedReference\\": {
\\"defaultValue\\": {
\\"value\\": \\"imported\\",
\\"computed\\": true
},
\\"required\\": false
},
\\"globalReference\\": {
\\"defaultValue\\": {
\\"value\\": \\"Date\\",
\\"computed\\": true
},
\\"required\\": false
},
\\"stringGlobalName\\": {
\\"defaultValue\\": {
\\"value\\": \\"'top'\\",
\\"computed\\": false
},
\\"required\\": false
}
}
};"
`;