fix(v2): render correct theme for live code blocks on SSR (#2227)

This commit is contained in:
Alexey Pyltsyn 2020-01-20 06:00:04 +03:00 committed by Yangshun Tay
parent c0bacfd9f9
commit 95caf833d8

View file

@ -78,6 +78,7 @@ export default ({
if (live) { if (live) {
return ( return (
<Playground <Playground
key={mounted}
scope={{...React}} scope={{...React}}
code={children.trim()} code={children.trim()}
theme={prismTheme} theme={prismTheme}