import React from "react";
import ReactDOM from "react-dom";
import Redux,{createStore} from "redux";
import { Provider } from "react-redux";
import reducer from "./reducer.js";
import Todo1 from "./todo1.js";
const store = createStore(reducer);
ReactDOM.render(
<Provider store={store}>
<Todo1></Todo1>
</Provider>
,
document.getElementById("root")
)
将加粗部分改写成下面写法为什么会报错?
const store = React.createStore(reducer);
李晓健