Skip to content

Commit

Permalink
Add some stuff that requires transpilation. (#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 06dd17e commit 9c167a4
Showing 1 changed file with 17 additions and 1 deletion.
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 9c167a4

Please sign in to comment.