Skip to content

Commit

Permalink
Add some stuff that requires transpilation. (facebook#4174)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradfordlemley authored and Timer committed Mar 26, 2018
1 parent 037355c commit 54bf71e
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion fixtures/monorepos/packages/comp1/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
import React from 'react';

const Comp1 = () => <div>Comp1</div>;
class Comp1 extends React.Component {
static parts = {
greeting: 'hello',
region: 'world',
};

render() {
const { greeting, region } = Comp1.parts;

return (
<div {...this.props}>
Comp1
{greeting} {region}
</div>
);
}
}

export default Comp1;

0 comments on commit 54bf71e

Please sign in to comment.