如何使用瓶在烧瓶中反应来应用样式?

时间:2019-09-13 09:04:44

标签: reactjs flask bottle

我想知道如何使用bottlereact在React jsx文件中应用样式。

Python烧瓶:

@app.route('/')
def hello_world():
    return br.render_html(
        br.HelloWorlds({'name': 'World'})
    )

反应jsx:

var HelloWorld = React.createClass({
    render: function () {
        return (
            <div className={classes.root}>
        );
    } 
});

styles.css:

const styles = theme => ({
    root: {
        flexGrow: 1,
        backgroundColor: theme.palette.background.paper,
    },
})

类现在未定义。

0 个答案:

没有答案