I have the following react code and when I use Radium to in-line style, the media query doesn't work. It simply shows a blank page as output.
import React, { Component } from 'react';
import Radium from 'Radium';
class contact extends React.Component {
render() {
var styles = {
base: {
background: 'blue',
border: 0,
borderRadius: 4,
color: 'red',
padding: '1.5em',
'@media (max-width: 700px)': {
background: 'yellow'
}
},
};
return (
<div style={styles.base}>
<p>Hello, World!</p>
</div>
)
}
}
module.exports = Radium(Contact);
I need help finding what is the problem here. Thanks in advance!