diff --git a/fixtures/monorepos/packages/comp1/index.js b/fixtures/monorepos/packages/comp1/index.js index f3cb7964952..104989fe35a 100644 --- a/fixtures/monorepos/packages/comp1/index.js +++ b/fixtures/monorepos/packages/comp1/index.js @@ -1,5 +1,21 @@ import React from 'react'; -const Comp1 = () =>
Comp1
; +class Comp1 extends React.Component { + static parts = { + greeting: 'hello', + region: 'world', + }; + + render() { + const { greeting, region } = Comp1.parts; + + return ( +
+ Comp1 + {greeting} {region} +
+ ); + } +} export default Comp1;