Full CSS support for JSX without compromises
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] over 2 years ago
nonce
propertystyled-jsx/server
import path is deprecatedflush
and flushToHTML
from styled-jsx/server
APIs are deprecated<StyledRegistry>
is introduceduseStyleRegistry
and createStyleRegistry
are introducedIf you're only use styled-jsx in pure client side, nothing will effect you.
If you're using styled-jsx inside Next.js without customization, Next.js will manage the new gaps and it's same as previous.
If you have your own customization with styled-jsx in Next.js, for example you have a custom _document
:
By default, doing this will let Next.js collect styles and pass them down.
class Document extends React.Component {
static async getInitialProps(ctx) {
return await ctx.defaultGetInitialProps(ctx)
}
}
Or for instance you're passing nonce
property in getInitialProps
of _document
, this will let you configure it:
class Document extends React.Component {
static async getInitialProps(ctx) {
- return await ctx.defaultGetInitialProps(ctx)
+ return await ctx.defaultGetInitialProps(ctx, { nonce })
}
}
If you're building the SSR solution yourself with other frameworks, please checkout the Server-Side Rendering section in readme.
Published by github-actions[bot] almost 3 years ago
Published by github-actions[bot] almost 3 years ago
Published by github-actions[bot] almost 3 years ago
Published by github-actions[bot] almost 3 years ago
Published by github-actions[bot] almost 3 years ago
Published by github-actions[bot] about 3 years ago
Published by github-actions[bot] about 3 years ago