Jsx通过style标签写css的loader

#1

jsx通过style标签写css的loader
https://github.com/MyNodeJs/style-jsx-loader

#2

没看懂你这个是什么:question:

#3

在jsx文件里面写style标签
Counter.jsx

<style>
  body {
    background: green;
  }
</style>
import React, { Component } from 'react';

export default class Counter extends Component {
  render() {
    return null;
  }
}
#4

这这这……这不闲着蛋疼么……

#5

这种思路是模仿vue,react中这样写不方便啊

#6

恩,刚开始写,也不完善,只是先探讨下适不适合