123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- <div>
- {
- /* comment */
- }
- </div>;
- <div>
- {/* comment */
- }
- </div>;
- <div>
- {/* comment
- */
- }
- </div>;
- <div>
- {a/* comment
- */
- }
- </div>;
- <div>
- {/* comment
- */
- a
- }
- </div>;
- <div>
- {/* comment */
- }
- </div>;
- <div>
- {/* comment */}
- </div>;
- <div>
- {
- // single line comment
- }
- </div>;
- <div>
- {
- // multiple line comments 1
- // multiple line comments 2
- }
- </div>;
- <div>
- {
- // multiple mixed comments 1
- /* multiple mixed comments 2 */
- /* multiple mixed comments 3 */
- // multiple mixed comments 4
- }
- </div>;
- <div>
- {
- // Some very v ery very very merry (xmas) very very long line to break line width limit
- }
- </div>;
- <div>{/*<div> Some very v ery very very long line to break line width limit </div>*/}</div>;
- <div>
- {/**
- * JSDoc-y comment in JSX. I wonder what will happen to it?
- */}
- </div>;
- <div>
- {
- /**
- * Another JSDoc comment in JSX.
- */
- }
- </div>;
- <div
- /**
- * Handles clicks.
- */
- onClick={() => {}}>
- </div>;
- <div
- // comment
- >
- {foo}
- </div>;
- <div
- className="foo" // comment
- >
- {foo}
- </div>;
- <div
- className="foo"
- // comment
- >
- {foo}
- </div>;
- <div // comment
- id="foo"
- >
- {children}
- </div>;
- <Wrapper>
- {}
- <Component />
- </Wrapper>
|