From 52451c027968845f31f68bde085bc2e67a3ff3a9 Mon Sep 17 00:00:00 2001 From: hmeissner Date: Fri, 10 Nov 2017 22:44:07 +0100 Subject: [PATCH] expand the classic + presentational examples a little --- templates/classic/COMPONENT_NAME.js | 6 +++++- templates/classicES7/COMPONENT_NAME.js | 6 +++++- templates/presentational/COMPONENT_NAME.js | 4 +++- templates/statefulES7/COMPONENT_NAME.js | 6 +++++- 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/templates/classic/COMPONENT_NAME.js b/templates/classic/COMPONENT_NAME.js index b92236a..186e0cb 100644 --- a/templates/classic/COMPONENT_NAME.js +++ b/templates/classic/COMPONENT_NAME.js @@ -7,7 +7,11 @@ class COMPONENT_NAME extends Component { } render() { - return
+ return ( +
+ COMPONENT_NAME +
+ ) } } diff --git a/templates/classicES7/COMPONENT_NAME.js b/templates/classicES7/COMPONENT_NAME.js index d0b019c..bb2d2b7 100644 --- a/templates/classicES7/COMPONENT_NAME.js +++ b/templates/classicES7/COMPONENT_NAME.js @@ -6,7 +6,11 @@ class COMPONENT_NAME extends Component { static propTypes = {} render() { - return
+ return ( +
+ COMPONENT_NAME +
+ ) } } diff --git a/templates/presentational/COMPONENT_NAME.js b/templates/presentational/COMPONENT_NAME.js index 87d8d87..6002b9d 100644 --- a/templates/presentational/COMPONENT_NAME.js +++ b/templates/presentational/COMPONENT_NAME.js @@ -2,7 +2,9 @@ import React from 'react'; import PropTypes from 'prop-types'; const COMPONENT_NAME = () => ( -
+
+ COMPONENT_NAME +
); COMPONENT_NAME.propTypes = {} diff --git a/templates/statefulES7/COMPONENT_NAME.js b/templates/statefulES7/COMPONENT_NAME.js index 2dfdb61..87a40b8 100644 --- a/templates/statefulES7/COMPONENT_NAME.js +++ b/templates/statefulES7/COMPONENT_NAME.js @@ -7,7 +7,11 @@ class COMPONENT_NAME extends Component { state = {} render() { - return
+ return ( +
+ COMPONENT_NAME +
+ ) } }