Skip to content

Add lazy load example #169

Description

@flying-sheep

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions