Disclaimer: NOT AN ANSWER TO THE PROBLEM.
Leaving an Important note here:
If you are trying to forceupdate a stateless component, chances are there is something wrong with your design.
Consider the following cases:
- Pass a setter (setState) to a child component that can change state and cause the parent component to re-render.
- Consider lifting state up
- Consider putting that state in your Redux store, that can automatically force a re-render on connected components.