Skip to content
This repository was archived by the owner on Aug 19, 2022. It is now read-only.
This repository was archived by the owner on Aug 19, 2022. It is now read-only.

Media Query crashing app #574

@shilpan

Description

@shilpan

My code is as follows:

import React, { Component } from 'react';
import Radium from 'radium';

const styles = {
    'base': {
        '@media (min-width: 320px)': {
            marginLeft: 700
        },
        'marginTop': 100,
        'marginLeft': 500,
    },
    'test': {
        'color': '#123423',
        ':hover': {
          backgroundColor: 'red'
        }
    }
};

class App extends Component {
    render() {
        return (
            <div>
                <p style={[
                        styles.base,
                        styles.test
                    ]}>hi</p>
            </div>
        );
    }
}

export default Radium({isRoot: true})(App);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions