-
Hey folks, I am trying to write a Story with MDX format and for some reason I get Any clue why this is happening. The story looks like this:
And I followed the way Monday.com writes their MDX stories which seems to work as expected: https://github.com/mondaycom/monday-ui-react-core/blob/master/src/hooks/useClickableProps/__stories__/useClickableProps.stories.mdx |
Beta Was this translation helpful? Give feedback.
Answered by
konsalex
Nov 27, 2023
Replies: 1 comment 12 replies
-
Hi @konsalex 👋 Writing stories in MDX has been deprecated in Storybook 7. Do you have the same issue if you write your story in the CSF format instead? |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@integrayshaun thanks for the guidance. Ended up creating a pattern which is more maintainable as the code will live only in one place, and not manually pasted as a string.
Example for future reference from folks:
https://stackblitz.com/edit/react-hook-story-cigb35?file=src%2Fhooks%2FuseRenderCount%2FStoryCode.tsx