Indentation samples
This file contains 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 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 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