1 |
|
2 | import React from 'react'
|
3 |
|
4 |
|
5 |
|
6 | const ComponentZeroProp = () => < input />
|
7 | const ComponentZeroProp1 = () => < div ></ div >
|
8 | const ComponentOneProp = (one) => <input one={one}/>
|
9 | const ComponentTwoProp = (one, two) => <input one={one} two={two}/>
|
10 | const ComponentTreeProp = (one, two, tree) => <input one={one} two={two} tree={tree}/>
|
11 | const ComponentFourProp = (one, two, tree, four) => <input one={one} two={two} tree={tree} four={four}/>
|
12 | const ComponentFiveProp = (one, two, tree, four, five) => <input one={one} two={two} tree={tree} four={four} five={five}/>
|
13 | const ComponentSixProp = (one, two, tree, four, five, six) => <input one={one} two={two} tree={tree} four={four} five={five} six={six}/>
|
14 | const ComponentSevenProp = (one, two, tree, four, five, six, seven) => <input one={one} two={two} tree={tree} four={four} five={five} six={six} seven={seven}/>
|
15 |
|
16 |
|
17 | const ComponentText0 = () => <input text='some text' />
|
18 | const ComponentText1 = () => <input text={'some text'} />
|
19 | const ComponentText2 = () => <input text="some text" />
|
20 | const ComponentText3 = () => <input text={"some text"} />
|
21 | const ComponentText4 = () => <input text={"'some' text"} />
|
22 | const ComponentText5 = () => <input text={"'some' text"} />
|
23 | const ComponentText6 = () => <input text={'"some" text'} />
|
24 | const ComponentText7 = (text) => <input text={"'some' " + text + " text"} />
|
25 | const ComponentText8 = (text) => <input text={`${text}`} />
|
26 |
|
27 | const array = []
|
28 | const array1 = ['']
|
29 | const array2 = ['one', 'two']
|
30 | const array3 = ['one', 'two', "tree"]
|
31 | const array4 = [
|
32 | 'one',
|
33 | 'two',
|
34 | "tree"]
|
35 |
|
36 | const object = {}
|
37 | const object1 = { 1: 'test'}
|
38 | const object2 = { 1: 'test' }
|
39 | const object3 = {1: 'test'}
|
40 | const object4 = {1: 'test', 2: "test"}
|
41 | const object5 = {
|
42 | 1: 'test',
|
43 | 2: "test"
|
44 | }
|
45 | const x = a =>
|
46 | a ?
|
47 | 1
|
48 | :
|
49 | 2;
|
50 |
|
51 | function testNewLineBeforeReturn(z) {
|
52 | const y = z;
|
53 | return y;
|
54 | }
|
55 |
|
56 | /* eslint-enable no-unused-vars */
|