23 lines
1.3 KiB
XML
23 lines
1.3 KiB
XML
<templateSet group="JavaScript">
|
|
<template name="log" value="console.log($END$)" description="Console log" toReformat="false" toShortenFQNames="true">
|
|
<context>
|
|
<option name="JAVA_SCRIPT" value="true" />
|
|
</context>
|
|
</template>
|
|
<template name="rcon" value="constructor(props){ super(props); this.state = $END$; } " description="Constructor" toReformat="false" toShortenFQNames="true">
|
|
<context>
|
|
<option name="JAVA_SCRIPT" value="true" />
|
|
</context>
|
|
</template>
|
|
<template name="rcom" value="class $component_name$ extends Component { render(){ return( <div> $END$ </div> ); } }" description="React Component" toReformat="false" toShortenFQNames="true">
|
|
<variable name="component_name" expression="" defaultValue="" alwaysStopAt="true" />
|
|
<context>
|
|
<option name="JAVA_SCRIPT" value="true" />
|
|
</context>
|
|
</template>
|
|
<template name="promise" value="return new Promise((resolve, reject) => { });" description="Create a javascript promise" toReformat="false" toShortenFQNames="true">
|
|
<context>
|
|
<option name="JAVA_SCRIPT" value="true" />
|
|
</context>
|
|
</template>
|
|
</templateSet> |