From 455d14ede697a6e002be095b82b151f4c605ee29 Mon Sep 17 00:00:00 2001 From: Jason Kurian Date: Wed, 16 Jun 2021 01:46:49 -0400 Subject: [PATCH] update the example to match prism examples structure and fixes a small typo :) --- README.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index e457dfa..3ff918a 100755 --- a/README.md +++ b/README.md @@ -95,21 +95,23 @@ const exampleCode = ` return () => ; `; -render(( +render( {({ className, style, tokens, getLineProps, getTokenProps }) => ( -
-        {tokens.map((line, i) => (
-          
- {line.map((token, key) => ( - - ))} -
- ))} +
+        
+          {tokens.map((line, i) => (
+            
+ {line.map((token, key) => ( + + ))} +
+ ))} +
)} , - document.getElementById('root') + document.getElementById("root") ); ```