-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathtest.js
57 lines (49 loc) · 1.13 KB
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import React from 'react';
import styled from 'styled-components';
import { createFragmentContainer, graphql } from 'react-relay';
const bitsForInjectGlobal = /* CSS */ `
body {
width: 100%;
height: 100%;
overflow: hidden;
}
`;
const StyledComponent = styled.div`
text-align: center; /* Actual CSS highlighting! */
`;
const App = () => (
<StyledComponent>
{/* <p>Proper JSX commenting</p> */}
<input
name="input"
// placeholder="Comments properly if attributes are split!"
/>
</StyledComponent>
);
export default createFragmentContainer(
App,
graphql`
fragment Properly_Highlighted_GraphQL_Query on Model {
requestedVariables
}
`
);
// https://github.com/michaelgmcd/vscode-language-babel/issues/62
const userType = gql`
"""
Description of the user type
"""
type User { # Comment about user type
"Description of the email field"
email: String!
id: ID!
}
`;
const regex = /(?<foo>bar)/sd;
class FlowTypeArguments extends React.Component<MyProps> {
myRef = React.createRef<HTMLDivElement>();
render() {
const { foo } = this.props;
return null;
}
}