babel-plugin-css-to-inline-styles

1.0.0 • Public • Published

babel-plugin-css-to-inline-styles

Installation

npm install --save babel-plugin-css-to-inline-styles

Example

Given an example css file (test.css)

.main-wrapper {
    flex-direction: row;
    display: flex;
    flex: 1;
  }

app.jsx

const ReactComponent = <div className="main-wrapper"></div>

transforms to

const ReactComponent = <div style={{
                                    flexDirection: 'row',
                                    display: 'flex',
                                    flex: 1;
                                    }}>
                        </div>

Need help or want to donate to help me make Open Source projects?

Readme

Keywords

none

Package Sidebar

Install

npm i babel-plugin-css-to-inline-styles

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

4.83 kB

Total Files

4

Last publish

Collaborators

  • ev1stensberg