File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
test/fixtures/stateless-functional-components Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 1+ import { createElement } from 'react' ;
2+
13const Foo1 = ( ) => (
24 < div />
35) ;
@@ -98,4 +100,12 @@ const Foo9 = () => {
98100
99101Foo9 . propTypes = {
100102 foo : React . PropTypes . string
103+ } ;
104+
105+ const Foo10 = ( ) => {
106+ return createElement ( "div" , null ) ;
107+ } ;
108+
109+ Foo10 . propTypes = {
110+ foo : React . PropTypes . string
101111} ;
Original file line number Diff line number Diff line change 11"use strict" ;
22
3+ var _react = require ( "react" ) ;
4+
35var Foo1 = function Foo1 ( ) {
46 return React . createElement ( "div" , null ) ;
57} ;
@@ -64,4 +66,8 @@ function Foo8() {
6466
6567var Foo9 = function Foo9 ( ) {
6668 return React . createElement ( "div" , null ) ;
69+ } ;
70+
71+ var Foo10 = function Foo10 ( ) {
72+ return ( 0 , _react . createElement ) ( "div" , null ) ;
6773} ;
You can’t perform that action at this time.
0 commit comments