Full CSS support for JSX without compromises
MIT License
Bot releases are hidden (Show)
Published by rauchg almost 8 years ago
Published by rauchg almost 8 years ago
Published by rauchg almost 8 years ago
Published by rauchg almost 8 years ago
Add missing server
export [@nkzawa]
Published by rauchg almost 8 years ago
New APIs for server rendering styles that prevent duplication on the client when hydrating:
styled-jsx/server
flush()
(default
) returns an array of React.Element
for each <style>
flushToHTML
returns an HTML stringPublished by rauchg almost 8 years ago
Fix multiple occurrences of components per file (#12, PR #45) [@giuseppeg]
Published by rauchg almost 8 years ago
Fix multiple style occurrences by introducing styleId
into <_JSXStyle>
(PR #44) [@nkzawa]
Published by rauchg almost 8 years ago
data-jsx
use number literals instead of string literals for better memory / diff performance [@rauchg]It's now possible to combine a global and scoped style in the same component (#41) [@rauchg]
export default () => (
<div>
<p>hi</p>
<style jsx global>{`
body {
background: red
}
`}</style>
<style jsx>{`p { color: red; }`}</style>
</div>
)
<style>
(#24) [@rauchg]files
property within package.json
: https://github.com/zeit/styled-jsx/pull/23
<style>
tag now works properly: https://github.com/zeit/styled-jsx/pull/20
dependency
, not as devDependency
: 738a7d8README.md
: https://github.com/zeit/styled-jsx/pull/14
package.json
: https://github.com/zeit/styled-jsx/pull/10