Changeset View
Changeset View
Standalone View
Standalone View
autotests/input/test.jsx
- This file was added.
1 | /* email: <willy@wmail.com> | ||||
---|---|---|---|---|---|
2 | * URL: https://reactjs.org/*/ | ||||
3 | | ||||
4 | import React from 'react'; | ||||
5 | import { PhotoStory, VideoStory } from './stories'; | ||||
6 | | ||||
7 | function Story(props) { | ||||
8 | const SpecificStory = components[props.storyType]; | ||||
9 | return <SpecificStory story={ props.story } attr2="&ref;" attr3="Hello\n" />; | ||||
10 | } | ||||
11 | | ||||
12 | function | ||||
13 | <Tag attr1={ <tag/> function <noTag/> return class var 0x123 { } &noRef; hello() React.Component() } attr2="&ref;"> | ||||
14 | /* no comment*/ function <tag/> return class var 0x123 &ref; hello() React.Component() | ||||
15 | .<tag/> anyWord <tag/> | ||||
16 | { function <tag> return class var 0x123 hello() React.Component() } | ||||
17 | </Tag> | ||||
18 | | ||||
19 | <tag1> </tag1> | ||||
20 | <tag1> </Tag$> | ||||
21 | <Tag$> </tag> | ||||
22 | | ||||
23 | <tag/*comment*/attr1/*comment*/= /*comment*/"value"/*comment*/attr2 /*comment*/attr3='a' key/*comment*/key2 /> | ||||
24 | | ||||
25 | // Detect Valid tags | ||||
26 | | ||||
27 | /* comment */ <tag></tag> | ||||
28 | { /* comment | ||||
29 | */ <Tag /> | ||||
30 | word <noTag/> . <noTag/> } <noTag/> | ||||
31 | return /* comment | ||||
32 | multiline */ <tag/> /* comment */ <Tag/> | ||||
33 | && /*comment*/ <Tag/> | ||||
34 | & /*comment*/ <noTag/> | ||||
35 | | ||||
36 | <tag/> | ||||
37 | { <hello>Hello</hello> } | ||||
38 | ?<Tag />; | ||||
39 | [ <tag /> ( <tag /> | ||||
40 | ,<Tag/> =<Tag/> | ||||
41 | &&<tag/> ||<tag/> | ||||
42 | return <tag/> ; | ||||
43 | default<tag/> ; | ||||
44 | <Tag> <tag> <tag$/> </tag> return </Tag> | ||||
45 | | ||||
46 | anyWord<noTag> | ||||
47 | anyWord/*comment*/ <noTag/> | ||||
48 | .<noTag> | ||||
49 | &<notag> | <noTag/> | ||||
50 | % /* comment*/ <noTag/> |