Answer the question
In order to leave comments, you need to log in
How to use React Templates for react.js PHPStorm/WebStorm?IntelliJ IDEA?
I came across an interesting solution for separating html and logic for react.js called React Templates
Specially for PHPStorm / WebStorm? IntelliJ IDEA has a plugin for this.
Those. I installed the plugin and installed the react-templates npm package globally .
According to the instructions, I prescribe a template and a controller, as a result, a js file for react.js is generated autonomously, and it would seem that everything is fine and the generated file is an exact copy as in the example, but does not want to run.
Those. I write to him
React.render(
rtIfRT(),
document.getElementById('example')
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question