Skip to content
This repository has been archived by the owner on Sep 2, 2019. It is now read-only.
/ emmet-jsx-props Public archive

Atom package to extend Emmet's JSX expansions to convert string attributes to props

License

Notifications You must be signed in to change notification settings

iJigg/emmet-jsx-props

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

emmet-jsx-props package

Atom package to extend Emmet's JSX expansions to convert string attributes to js props

Demo

alt tag

Enable tab completion for JSX with Emmet in Atom

This guide assumes you have the emmet and language-babel packages already installed in Atom

  1. Open the keymap.cson file by clicking on Atom -> Keymap… in the menu bar
  2. Add these lines of code to your keymap:
'atom-text-editor[data-grammar~="jsx"]:not([mini])':
  'tab': 'emmet:expand-abbreviation-with-tab'

Now open a file with JSX code, type div[prop=myProp], press tab and it should autocomplete to <div prop={myProp}></div>! (if it's not properly syntax highlighted, select Babel ES6 JavaScript or JSX as the syntax, this won't work otherwise)

About

Atom package to extend Emmet's JSX expansions to convert string attributes to props

Resources

License

Stars

Watchers

Forks

Packages

No packages published