How to hide the AppAsideToggler component from core-ui/react in componentWillUnmount?

95 Views Asked by At

I have to use the AppAsideToggler from core-ui. But when I navigate to another component, the toggler component is still getting rendered. How do I hide the AppAsideToggler (using display or 'click' event etc.) when the componentWillUnmount().

<AppAsideToggler id="toggler" mobile ref{this.asideTogglerRef}>
    <span className="text-black">
        <i className="fa fa-filter"></i> APP
    </span>
</AppAsideToggler>
0

There are 0 best solutions below