How to split state to avoid rerender in react app

前端 未结 0 941
無奈伤痛
無奈伤痛 2020-12-02 10:38

I\'m building a block based editor from scratch. I have the model as

initialState = {
id,
name,
blocks: [{
id,
content: [{text: \'\', attributes: []}]
}]
}


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题