Skip to content

Can't Get @wordpress/scripts to Render JSX on public front-end (Worked with version 27.x.x) #69034

Answered by LearnWebCode
LearnWebCode asked this question in Q&A
Discussion options

You must be logged in to vote

To anyone who might be running into this same issue, I found my solution.

In functions.php, when I'm enqueuing my JS file, in addition to 'wp-element' I also needed to include 'react-jsx-runtime' as a dependency as well.

Happy coding to you all 🎉

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LearnWebCode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant