The main idea of component is a rendering or absence of the first button. At global space window.location.pathname = ‘/’. First of all I tried to set a new pathname through call functions assign() and replace(). But console said: Not implemented navigation (except hash changes). And the component was not completely covered with dough.