ijigg / emmet-jsx-props Goto Github PK
View Code? Open in Web Editor NEWAtom package to extend Emmet's JSX expansions to convert string attributes to props
License: MIT License
Atom package to extend Emmet's JSX expansions to convert string attributes to props
License: MIT License
The plugin seems to be not compatible with Sublime Text 3.. should i format my computer and start over?
[Enter steps to reproduce:]
Atom: 1.23.1 x64
Electron: 1.6.15
OS: Unknown Windows version
Thrown From: emmet-jsx-props package 1.2.5
Failed to activate the emmet-jsx-props package
At Path must be a string. Received null
TypeError: Path must be a string. Received null
at assertPath (path.js:7:11)
at Object.resolve (path.js:186:7)
at Object.activate (/packages/emmet-jsx-props/lib/emmet-jsx-props.js:6:28)
at Package.module.exports.Package.activateNow (~/AppData/Local/atom/app-1.23.1/resources/app/src/package.js:255:25)
at ~/AppData/Local/atom/app-1.23.1/resources/app/src/package.js:227:38
at Package.module.exports.Package.measure (~/AppData/Local/atom/app-1.23.1/resources/app/src/package.js:99:21)
at ~/AppData/Local/atom/app-1.23.1/resources/app/src/package.js:220:32
at Package.module.exports.Package.activate (~/AppData/Local/atom/app-1.23.1/resources/app/src/package.js:217:40)
at PackageManager.activatePackage (~/AppData/Local/atom/app-1.23.1/resources/app/src/package-manager.js:695:42)
at config.transactAsync (~/AppData/Local/atom/app-1.23.1/resources/app/src/package-manager.js:670:36)
at Config.module.exports.Config.transactAsync (~/AppData/Local/atom/app-1.23.1/resources/app/src/config.js:367:24)
at PackageManager.activatePackages (~/AppData/Local/atom/app-1.23.1/resources/app/src/package-manager.js:668:23)
at PackageManager.activate (~/AppData/Local/atom/app-1.23.1/resources/app/src/package-manager.js:647:50)
at ~/AppData/Local/atom/app-1.23.1/resources/app/src/atom-environment.js:865:36
css-snippets 1.1.0
emmet 2.4.3
emmet-jsx-css-modules 1.0.0
emmet-jsx-props 1.2.5
emmet-snippets-compatibility 1.0.6
html-to-css 0.2.2
jackhammer-syntax 1.1.0
This package works correctly but I don't want it to do this:
$ div.header
to
$ div className={header} < and the other stuff
I want this:
$ div.header
to
$ div className="header" < and the other stuff
And when I use [] do this:
$ div[prop=data]
to
$ div prop={data} < and the other stuff
I don't know if you understand me ๐คฆโโ๏ธ
I'am using this on Atom
This:
div[foo=bar]
Produces:
<div foo={bar}></div>
However when we nest things it stops working:
div[foo=bar]>span[name=name]
Produces:
<div foo={bar}>
<span name="name"></span>
</div>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.