我正在尝试按照这个Reason React 教程来构建一个简单的 TodoApp:
但是,当将组件的类型从更改为时statelessComponent
,reducerComponent
出现以下错误:
We've found a bug for you!
/Users/harald/projects/reason/a-reason-react-tutorial/src/TodoApp.re 8:17-44
6 │ type state = {items: list item};
7 │
8 │ let component = ReasonReact.reducerComponent "TodoApp";
9 │
10 │ let se = ReasonReact.stringToElement;
The value reducerComponent can't be found in ReasonReact