Created
October 9, 2016 13:26
-
-
Save ravasthi/561dfa9ada674552fbce3e443259bab2 to your computer and use it in GitHub Desktop.
Indentation samples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
** Indented using the TM command 'Indent Selection' (opt + cmd + [) | |
*/ | |
import BodyClassName from 'react-body-classname'; | |
import DocumentTitle from 'react-document-title'; | |
import generateDocumentTitle from 'components/lib/pageDisplay'; | |
import React from 'react'; | |
function MyComponent() { | |
const componentClass = 'my-component'; | |
const docTitleSnippet = 'My Component'; | |
const docTitle = generateDocumentTitle(docTitleSnippet); | |
return ( | |
<div className={componentClass}> | |
<BodyClassName className={componentClass}> | |
<DocumentTitle title={docTitle}> | |
<h1>{docTitleSnippet}</h1> | |
</DocumentTitle> | |
</BodyClassName> | |
</div> | |
); | |
} | |
export default MyComponent; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import BodyClassName from 'react-body-classname'; | |
import DocumentTitle from 'react-document-title'; | |
import generateDocumentTitle from 'components/lib/pageDisplay'; | |
import React from 'react'; | |
function MyComponent() { | |
const componentClass = 'my-component'; | |
const docTitleSnippet = 'My Component'; | |
const docTitle = generateDocumentTitle(docTitleSnippet); | |
return ( | |
<div className={componentClass}> | |
<BodyClassName className={componentClass}> | |
<DocumentTitle title={docTitle}> | |
<h1>{docTitleSnippet}</h1> | |
</DocumentTitle> | |
</BodyClassName> | |
</div> | |
); | |
} | |
export default MyComponent; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import BodyClassName from 'react-body-classname'; | |
import DocumentTitle from 'react-document-title'; | |
import generateDocumentTitle from 'components/lib/pageDisplay'; | |
import React from 'react'; | |
function MyComponent() { | |
const componentClass = 'my-component'; | |
const docTitleSnippet = 'My Component'; | |
const docTitle = generateDocumentTitle(docTitleSnippet); | |
return ( | |
<div className={componentClass}> | |
<BodyClassName className={componentClass}> | |
<DocumentTitle title={docTitle}> | |
<h1>{docTitleSnippet}</h1> | |
</DocumentTitle> | |
</BodyClassName> | |
</div> | |
); | |
} | |
export default MyComponent; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment