How to use the jsxstyle.install function in jsxstyle

To help you get started, we’ve selected a few jsxstyle examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ThaumRystra / DiceCloud / imports / ui / App.jsx View on Github external
import Flex from 'jsxstyle/Flex';
import Col from 'jsxstyle/Col';
import Block from 'jsxstyle/Block';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import AppBar from 'material-ui/AppBar';
import { grey800, darkBlack } from 'material-ui/styles/colors';

import Sidebar from './Sidebar.jsx'; /* eslint "import/order": "off" */

/* eslint-disable */
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();

import jsxstyle from 'jsxstyle';
jsxstyle.install();
/* eslint-enable */

class App extends React.Component {
    constructor(props) {
        super(props);
        this.state = { drawer: true };
        this.toggleDrawer = this.toggleDrawer.bind(this);
        this.render = this.render.bind(this);
    }

    toggleDrawer() {
        this.setState({ drawer: !this.state.drawer });
    }

    render() {
        return (

jsxstyle

Inline style system for React and Preact

Apache-2.0
Latest version published 1 year ago

Package Health Score

58 / 100
Full package analysis