ES2015 compiler. react-simple-code-editor:代码展示 A simple no-frills code editor with syntax highlighting. prism-react-renderer import { LiveProvider, LiveEditor, LiveError, LivePreview } from "react-live"; import dracula from "prism-react-renderer react-live react-simple-code-editor: https://github.com/satya164/react-simple-code-editor#readme prism-react-renderer : https://github.com/FormidableLabs/prism-react-renderer buble: https://github.com/bublejs/buble
Note: type annotations allow type checking and IDEs autocompletion const lightCodeTheme = require('prism-react-renderer /themes/github'); const darkCodeTheme = require('prism-react-renderer/themes/dracula'); /** @type {import
Note: type annotations allow type checking and IDEs autocompletion const lightCodeTheme = require('prism-react-renderer /themes/github'); const darkCodeTheme = require('prism-react-renderer/themes/dracula'); /** @type {import