Skip to content

Commit 22d5c54

Browse files
authored
Merge pull request #54 from hmeissner/master
Proposal: Expand the classic + presentational examples a little
2 parents 370c137 + 52451c0 commit 22d5c54

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

templates/classic/COMPONENT_NAME.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ class COMPONENT_NAME extends Component {
77
}
88

99
render() {
10-
return <div className="COMPONENT_NAME" />
10+
return (
11+
<div className="COMPONENT_NAME">
12+
COMPONENT_NAME
13+
</div>
14+
)
1115
}
1216
}
1317

templates/classicES7/COMPONENT_NAME.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ class COMPONENT_NAME extends Component {
66
static propTypes = {}
77

88
render() {
9-
return <div className="COMPONENT_NAME" />
9+
return (
10+
<div className="COMPONENT_NAME">
11+
COMPONENT_NAME
12+
</div>
13+
)
1014
}
1115
}
1216

templates/presentational/COMPONENT_NAME.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import React from 'react';
22
import PropTypes from 'prop-types';
33

44
const COMPONENT_NAME = () => (
5-
<div className="COMPONENT_NAME" />
5+
<div className="COMPONENT_NAME">
6+
COMPONENT_NAME
7+
</div>
68
);
79

810
COMPONENT_NAME.propTypes = {}

templates/statefulES7/COMPONENT_NAME.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ class COMPONENT_NAME extends Component {
77
state = {}
88

99
render() {
10-
return <div className="COMPONENT_NAME" />
10+
return (
11+
<div className="COMPONENT_NAME">
12+
COMPONENT_NAME
13+
</div>
14+
)
1115
}
1216
}
1317

0 commit comments

Comments
 (0)