You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I'm working on building stories in Storybook for the React framework at my internship company, and I noticed that if the story contains arrow functions, the "Show code" section displays ()=>{}. I found online that it can be addressed using parameters.docs.source.code or transform, but my supervisor thinks this makes the source code appear cluttered. Is there a more fundamental way to solve this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
Hello! I'm working on building stories in Storybook for the React framework at my internship company, and I noticed that if the story contains arrow functions, the "Show code" section displays ()=>{}. I found online that it can be addressed using parameters.docs.source.code or transform, but my supervisor thinks this makes the source code appear cluttered. Is there a more fundamental way to solve this?
Additional information
No response
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions