I was looking at the examples in the documentation under advanced and couldn't get the CodeSandbox to load without error for controlled props (only one I am having an issue with so far).
To fix this I had to add 'react-syntax-highlighter' to dependencies, update the imports, and the registration of language.
Example in Question:
Error seen when clicking on the CodeSandbox to load:
With fix applied:
I would submit a pull request, but I can't seem to find a way to edit the Code Sandboxes.
Hello,
I was looking at the examples in the documentation under advanced and couldn't get the CodeSandbox to load without error for controlled props (only one I am having an issue with so far).
To fix this I had to add 'react-syntax-highlighter' to dependencies, update the imports, and the registration of language.
Example in Question:
Error seen when clicking on the CodeSandbox to load:
With fix applied:
I would submit a pull request, but I can't seem to find a way to edit the Code Sandboxes.
Thank you!