我正在尝试按照Reason React tutorial来构建一个简单的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
答案 0 :(得分:2)
解决方案发现,评论是理性反应的过时副本。 reducerComponent
引入了理性反应0.2.4。 npm update reason-react
应该修复它。