React - How to force a function component to render?

前端 未结 7 518
眼角桃花
眼角桃花 2020-12-02 18:18

I have a function component, and I want to force it to re-render.

How can I do so?
Since there\'s no instance this, I cannot call this.forceU

7条回答
提交回复
热议问题