The button does “work” in the sense that it re-mounts the component, which is what it is supposed to do. If remounting the component doesn’t fix the bug you’re seeing, then the bug needs to be fixed.
Updated the button to the new style.