` component:
2 |
3 |
4 | ```
5 | require('prismjs');
6 | require('prismjs/themes/prism.css');
7 |
8 |
9 | {`
10 | const id = x => x
11 | `}
12 |
13 | ```
14 | // or a `` component:
15 |
16 | ```
17 |
18 | {`
19 | const id = x => x
20 | `}
21 |
22 | ```
23 |
24 | **`react-prism` depends on the existence of `globals.Prism` object.**
25 |
26 | You'll either need to either:
27 |
28 | - load it via `
61 |
62 |
63 | Prism
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |