** UPDATE: 2019-02-12 **
The official React Documentation Is there something like forceUpdate? discourages use of
Here is the copy/pastable code snippet.
forceUpdate in action.
I still can’t figure out how calling
useForceUpdate is able to trigger the re-render as it is not updating any state.
Initially Donavon updated a dummy state but he found out it was unnecessary thus he isn’t unsure how it’s working, either.
I tried to go thru the code in Chrome devtool but would require understanding React Fiber code to dig it.
** Update **
Asked the question in Reddit,
And /u/acemarke has kindly provided with an explanation.