Created
January 4, 2020 19:14
-
-
Save aelindeman/d3cb7998769640cc1c991080b4bcfe51 to your computer and use it in GitHub Desktop.
React function component live template for IntelliJ/WebStorm
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 React from 'react'; | |
export interface $TM_FILENAME_BASE$Props { | |
} | |
const $TM_FILENAME_BASE$: React.FC<$TM_FILENAME_BASE$Props> = props => { | |
return ( | |
<> | |
$END$ | |
</> | |
); | |
}; | |
export default $TM_FILENAME_BASE$; |
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
<template name="fc" value="import React from 'react'; export interface $TM_FILENAME_BASE$Props { } const $TM_FILENAME_BASE$: React.FC<$TM_FILENAME_BASE$Props> = props => { return ( <> $END$ </> ); }; export default $TM_FILENAME_BASE$;" description="Function component" toReformat="true" toShortenFQNames="true"> | |
<variable name="TM_FILENAME_BASE" expression="capitalize(camelCase(fileNameWithoutExtension()))" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="TS_STATEMENT" value="true" /> | |
</context> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment