-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning: Unknown prop jsx
on <style> tag (version 2.3.0)
#1879
Comments
That's weird. Also check the |
Hi @arunoda! I put the code here: https://github.com/cluj-javascripters/jsheroes.io |
Hey @paulbrie we don't support styling as you did it. <div style={{ minHeight: 800, backgroundColor: styles.mainColor5 }}>
<Container>
<h1>JavaScript <br /> International Conference</h1>
<style jsx>{`
h1 {
font-size: 55px;
font-family: Arial;
}
`}</style>
</Container>
</div> As you can see here, it only gets affected to |
Thanks, got it. |
I've updated to 2.3.0. When loading from the server I get this warning:
...Warning: Unknown prop
jsxon <style> tag. Remove this prop from the element. ...
My code:
import { styles } from '../constants'
If if delete the jsx attribute and then put it back the warning does not appear anymore which makes me think that the issue is on the server-side only.
Thanks,
Paul
The text was updated successfully, but these errors were encountered: