diff --git a/addons/docs/src/frameworks/react/__testfixtures__/9626-js-default-values/docgen.snapshot b/addons/docs/src/frameworks/react/__testfixtures__/9626-js-default-values/docgen.snapshot new file mode 100644 index 00000000000..67528fe5cdd --- /dev/null +++ b/addons/docs/src/frameworks/react/__testfixtures__/9626-js-default-values/docgen.snapshot @@ -0,0 +1,24 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`react component properties 9626-js-default-values 1`] = ` +"import React from 'react'; // eslint-disable-next-line react/prop-types + +export const Tag = ({ + title = 'Beta' +}) => React.createElement(\\"div\\", null, title); +export const component = Tag; +Tag.__docgenInfo = { + \\"description\\": \\"\\", + \\"methods\\": [], + \\"displayName\\": \\"Tag\\", + \\"props\\": { + \\"title\\": { + \\"defaultValue\\": { + \\"value\\": \\"'Beta'\\", + \\"computed\\": false + }, + \\"required\\": false + } + } +};" +`; diff --git a/addons/docs/src/frameworks/react/__testfixtures__/9626-js-default-values/input.js b/addons/docs/src/frameworks/react/__testfixtures__/9626-js-default-values/input.js new file mode 100644 index 00000000000..451411c1c1e --- /dev/null +++ b/addons/docs/src/frameworks/react/__testfixtures__/9626-js-default-values/input.js @@ -0,0 +1,5 @@ +import React from 'react'; + +// eslint-disable-next-line react/prop-types +export const Tag = ({ title = 'Beta' }) =>