From de66896321c682169f3140f2e24187b0cf8960d5 Mon Sep 17 00:00:00 2001 From: ClarkXia Date: Thu, 20 Jun 2024 14:02:24 +0800 Subject: [PATCH] docs: update the demo code of customize script (#6918) --- website/docs/guide/basic/document.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/website/docs/guide/basic/document.md b/website/docs/guide/basic/document.md index d21ddb8dd9..e3ac6216b9 100644 --- a/website/docs/guide/basic/document.md +++ b/website/docs/guide/basic/document.md @@ -119,9 +119,14 @@ function Document() {
{ - return ; + console.log('Script props passed from framework', props); + return ( +