prism-react-renderer icon indicating copy to clipboard operation
prism-react-renderer copied to clipboard

Add lazy load example

Open flying-sheep opened this issue 3 years ago • 0 comments

I wrote an example component able to lazy load languages to avoid bundling everything: https://codesandbox.io/s/lazy-load-prism-react-renderer-2g7qhh

Doesn’t support language aliases, only the language names used in the filename (e.g. bash, but not shell or sh, since the file is called prism-bash.js)

You might want to link it (or a fork you control) from the readme.

flying-sheep avatar Nov 25 '22 11:11 flying-sheep