Answer the question
In order to leave comments, you need to log in
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
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question