我创建了一个基本上是' get‘fetch请求的操作,当应用程序编译时,我得到了这个TypeError: this.props.getRecipes is not a function错误。我试图完成的是,当我在表单中创建配方时,它将其发送到后端以在数据库中持久化,然后getRecipes()函数将自动执行get fetch请求,该请求将随着配方的不断添加而动态更新前端上显示的列表。/actions/getRecipes.js'
class RecipeList extends Component
Uncaught (in promise) TypeError: SVG is not a function 我尝试过以不同的方式导入Svg.js,但这似乎不是问题所在。SVG.Doc('drawing');
let rect = draw.rect(100, 100).attr({fill: "#f06"}) 上面的方法返回Uncaught (in promise) TypeError