FormidableLabs / FormidableLabs/prism-react-renderer

Add lazy load example

Open
#169 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2k
Forks
149
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Review the linked CodeSandbox lazy-loading example and locate the repository README. Decide whether the existing example or a maintained fork should be linked, preserving the note about language aliases. Done means the README contains the appropriate link and accurately describes the example.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
documentation, frontend
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.