Is it possible to add jsx or tsx pages in the site menu? #3869
Replies: 4 comments
-
Ok. I turned my page into an .mdx-file. I guess I can insert react code this way. |
Beta Was this translation helpful? Give feedback.
-
Could anyone give me example code, an .mdx page code, that fetch and displays data from an API? I don't understand how this works. I've tried 50+ ways to include posted mdx and rect code that should do the trick but ends up in errors either "Could not parse import/exports with acorn" or "Exhaust error" etc etc. Or am I doing it wrong? Is it not possible to let eg. /pages/dynamicpage.mdx fetch data and display? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Interested also in this. If you find a solution, let me know. I suppose you already tried to put in the |
Beta Was this translation helpful? Give feedback.
-
@MikeAndFriends: Just tried and it works! |
Beta Was this translation helpful? Give feedback.
-
I would like to combine static and dynamic pages on my site and display them in the left side Nextra menu (/pages/dynamicpage.jsx). Is that possible? Do I need to add something to any config files or _meta.js? How can I do this?
Beta Was this translation helpful? Give feedback.
All reactions