简体   繁体   中英

Why does the function inside onLoad not execute in my nextjs project

提示:本站收集StackOverFlow近2千万问答,支持中英文搜索,鼠标放在语句上弹窗显示对应的参考中文或英文, 本站还提供   中文简体   中文繁体   中英对照 版本,有任何建议请联系yoyou2525@163.com。

I was learning nextjs on nextjs.org and did what I read on the tutorial but it doesn't work. ....why is the function inside onLoad not executing?

 import Link from 'next/link'; import Head from 'next/head'; import Script from 'next/script'; const FirstPost = () => { return ( < div > < Head > < title > BlogPost < /title> < Script src = "https://connect.facebook.net/en_US/sdk.js" strategy = "lazyOnload" onLoad = { () => { console.log("script loaded successfully"); } } /> < /Head> < h3 > first blog post in my next.js project < /h3> < Link href = "/" > < h2 > Go home < /h2></Link > < /div> ) } export default FirstPost;

No answers.You can refer to the related questions on the right.
暂无
暂无

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2022 STACKOOM.COM