我想知道如何使用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,
},
})
类现在未定义。