Code Monkey home page Code Monkey logo

Comments (7)

tizmagik avatar tizmagik commented on May 18, 2024 1

Ah, yea I haven't tested react-head against React 18. It's possible it needs some updates. Feel free to open a PR to address any type issues with React 18.

from react-head.

tizmagik avatar tizmagik commented on May 18, 2024 1

Fixed in v3.4.2

from react-head.

tizmagik avatar tizmagik commented on May 18, 2024

Can you create a reproduction on Codesandbox or something? I'm not able to repro... https://codesandbox.io/s/modest-matsumoto-try7wg?file=/src/App.tsx

from react-head.

itaditya avatar itaditya commented on May 18, 2024

here's a simple Vite based app. Let me know if this will do otherwise I'll make one on Stackblitz.

https://github.com/itaditya/friendly-ui/blob/main/packages/react/src/App.tsx

from react-head.

itaditya avatar itaditya commented on May 18, 2024

I noticed the types in your CSB are of React 17 whereas mine are of React 18

"devDependencies": {
"@types/react": "17.0.20",
"@types/react-dom": "17.0.9",
"typescript": "4.4.2"
},

"devDependencies": {
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@vitejs/plugin-react": "^1.3.0",
"typescript": "^4.6.3",
"vite": "^2.9.9"
}

from react-head.

abhishiv avatar abhishiv commented on May 18, 2024

Can confirm I face the same issue with react18.

    const H = HeadProvider as any;
    const element = (
      <H headTags={headTags}>
      </H>
    );

from react-head.

marhaupe avatar marhaupe commented on May 18, 2024

This MR should fix this issue: #146

from react-head.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.