Changeset View
Changeset View
Standalone View
Standalone View
autotests/input/test.tsx
- This file was copied from autotests/input/test.jsx.
1 | /* email: <willy@wmail.com> | 1 | // TypeScript React | ||
---|---|---|---|---|---|
2 | * URL: https://reactjs.org/*/ | 2 | | ||
3 | /** @author Willy <willy@wmail.com> | ||||
4 | * @url https://reactjs.org/ **/ | ||||
3 | 5 | | |||
4 | import React from 'react'; | 6 | import React from 'react'; | ||
5 | import { PhotoStory, VideoStory } from './stories'; | 7 | import { PhotoStory, VideoStory } from './stories'; | ||
6 | 8 | | |||
7 | function Story(props) { | 9 | function Story(props) { | ||
8 | const SpecificStory = components[props.storyType]; | 10 | const SpecificStory = components[props.storyType]; | ||
9 | return <SpecificStory story={ props.story } attr2="&ref;" attr3="Hello\n" />; | 11 | return <SpecificStory story={ props.story } attr2="&ref;" attr3="Hello\n" />; | ||
10 | } | 12 | } | ||
Show All 32 Lines | |||||
43 | default<tag/> ; | 45 | default<tag/> ; | ||
44 | <Tag> <tag> <tag$/> </tag> return </Tag> | 46 | <Tag> <tag> <tag$/> </tag> return </Tag> | ||
45 | 47 | | |||
46 | anyWord<noTag> | 48 | anyWord<noTag> | ||
47 | anyWord/*comment*/ <noTag/> | 49 | anyWord/*comment*/ <noTag/> | ||
48 | .<noTag> | 50 | .<noTag> | ||
49 | &<notag> | <noTag/> | 51 | &<notag> | <noTag/> | ||
50 | % /* comment*/ <noTag/> | 52 | % /* comment*/ <noTag/> | ||
53 | | ||||
54 | annotation: <tag/> | ||||
55 | annotation: text [ <tag/> ] | ||||
56 | console.log("hello") |