D
D
DenJel2015-09-28 15:40:13
Programming
DenJel, 2015-09-28 15:40:13

WebStorm plugin to create react.component?

Hello, on what and how plugins are written for WebStorm. Suggest a good tutorial.
Or maybe someone has already come across
Essence:
We need a plugin to create a typical react component (get rid of the routine) with this structure:

--Component
----Component.jsx
----Component.scss
----package.json

/ * Component.jsx */
import css from './Components.scss';
import React from 'react';

class Component extends React.Component {

  render() {

    return (
        <div className={css.root}>
        
        </div>
    );

  }

}

export default Component;

//Component.scss
@import 'variables'
.root{
  
}

//package.json
{
  "main": "Component.jsx",
  "name": "Component",
  "version": "0.0.1",
  "description": "This is Component component application"
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kirill Wolf, 2017-04-21
@Deimosss88

In webstorm, you can set up code snippets. After entering a keyword, for example, defaultComponent and pressing Tab, the text of the snippet will appear in the file

_
_ _, 2015-09-28
@AMar4enko

Write a generator for Yeoman

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question