Skip to content

Add lazy load example #169

@flying-sheep

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions