• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

emmet-jsx-props-2

Atom package to extend Emmet's JSX expansions to convert string props to js props. Now with the ability to keep default Emmet functionality and arrow function support. Forked from https://github.com/iJigg/emmet-jsx-props
  • #emmet
  • #jsx
  • #react
  • #props
  • #arrow function
M3L6H
2.1.1 3,438
2
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

Emmet JSX Props 2 Package

Atom package to extend Emmet's JSX expansions to convert string attributes to js props. Forked from iJigg's package. Behavior is slightly altered.

  • Button[prop=myProp], Button[prop="myProp"], and Button[prop='myProp'] expand into <Button prop="myProp"></Button> which is default Emmet behavior
  • Button[prop={myJSXProp}] expands into <Button prop={myJSXProp}></Button>
  • If enabled, will also expand Button[prop=(myJSXProp)] into <Button prop={myJSXProp}></Button>
  • Lastly, Button[arrfunc={(param1, param2, param3) => {expr1; expr2; expr3;}}] expands into <Button arrfunc={(param1, param2, param3) => {expr1; expr2; expr3;}}></Button>
    • Note that multi-line arrow function expansion is not supported

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by