'MUI X - License key in a storybook

Where should I define my license key on a storybook?

Where to install the key? You must call setLicenseKey before React renders the first component. You only need to install the key once in your application. - MUI Docs

But this case is more complicated on storybook and I get the message License key expired when I define my license in the story or in my component index file.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source