Insert the TradingView widget into Next.js.
P粉478188786
P粉478188786 2023-07-27 14:09:01
0
1
435

I'm trying to insert the TradingView widget into my Next.js project, but it's not showing anything. Am I doing something wrong here?

import React from 'react' import { Helmet } from "react-helmet" function EconomicCalendar() { return ( 
) } export default EconomicCalendar

What should you usually do

P粉478188786
P粉478188786

reply all (1)
P粉930448030

If you are using Next.js, you do not need to use React Helmet to insert script tags into the head. Next.js has its own Script to optimize and manage third-party JavaScript. Or you can write inline JavaScript by adding inline script.

Please refer to the official documentation https://nextjs.org/docs/app/building-your-application/optimizing/scripts

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!