Skip to content

Commit f2954f2

Browse files
committed
[+] bump v4.0.1
1 parent 1d51929 commit f2954f2

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ For example, to create a new React class, type `rcc` and press `Tab` or press `C
4343
### `rcls`
4444

4545
```js
46-
class $COMPONENT$ extends PureComponent {
46+
import React, { Component } from 'react';
47+
import PropTypes from 'prop-types';
48+
49+
class $COMPONENT$ extends Component {
4750
static defaultProps = {
4851
$START$
4952
};

jetbrains/templates/ReactJS.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<templateSet group="ReactJS">
22
<template
33
name="rcls"
4-
value="class $COMPONENT$ extends PureComponent {&#10; static defaultProps = {&#10; $START$&#10; };&#10;&#10; static propTypes = {&#10; };&#10;&#10; state = {&#10; };&#10;&#10; render() {&#10; return (&#10; &lt;div&gt;$END$&lt;/div&gt;&#10; );&#10; }&#10;}&#10;&#10;export default $COMPONENT$;&#10;"
4+
value="import React, { Component } from &apos;react&apos;;&#10;import PropTypes from &apos;prop-types&apos;;&#10;&#10;class $COMPONENT$ extends Component {&#10; static defaultProps = {&#10; $START$&#10; };&#10;&#10; static propTypes = {&#10; };&#10;&#10; state = {&#10; };&#10;&#10; render() {&#10; return (&#10; &lt;div&gt;$END$&lt;/div&gt;&#10; );&#10; }&#10;}&#10;&#10;export default $COMPONENT$;&#10;"
55
description="React: Create a React ES2015 class"
66
toReformat="true"
77
toShortenFQNames="true">

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jetbrains-react",
3-
"version": "4.0.0",
3+
"version": "4.0.1",
44
"description": "React snippets(live templates) for JetBrains series editors.",
55
"main": "index.js",
66
"scripts": {

settings.jar

7 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)