G
G
gleendo2017-08-02 15:20:52
Emmet
gleendo, 2017-08-02 15:20:52

Is it possible to work with JSX like regular html (is it possible to use emmet or something like that)?

When writing react code, it is most convenient to use the JSX syntax. but manually typing all the tags, angle brackets, opening and closing brackets, is inconvenient and wildly slow.
Is it possible to write JXS like using emmet in html? wrote a snippet, a tab and a piece of code unfolded.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
gleendo, 2017-08-02
@evgeniy8705

for atom

// Open the keymap.cson file by clicking on Atom -> Keymap… in the menu bar
// Add these lines of code to your keymap:

'atom-text-editor[data-grammar~="jsx"]:not([mini])': 'tab': 'emmet:expand-abbreviation-with-tab'

R
Roman Alexandrovich, 2017-08-02
@RomReed

use WebStrom and you will be happy. Everything will prompt, illuminate.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question