GithubHelp home page GithubHelp logo

Next@9 compatibily about next-plugin-preact HOT 3 CLOSED

preactjs avatar preactjs commented on May 18, 2024
Next@9 compatibily

from next-plugin-preact.

Comments (3)

rschristian avatar rschristian commented on May 18, 2024 1

Are you asking about Preact's NextJS plugin (next-plugin-preact), or Preact itself?

It looks like the v9.0.0 release of Next supports React 16.x, so there shouldn't be any issues there (theoretically) in swapping in preact/compat. Compatibility in this case is mostly up to Next; while Preact offers nearly full compat with React, Next still needs to facilitate the aliasing.

from next-plugin-preact.

JoviDeCroock avatar JoviDeCroock commented on May 18, 2024 1

Yes, Next@9 should be fully supported. It's a bit old so I'm not entirely sure whether the next-plugin-preact does too much or too little but following the steps that we do there should be enough to make it work.

  • replace your react dependencies with the stub one from preact
  • maybe add prefresh if you need fast-refresh no idea if that was supported in v9

from next-plugin-preact.

dkrefta avatar dkrefta commented on May 18, 2024

@JoviDeCroock and @rschristian yeah was the plugin but also the preact version, but I did some changes and I upgraded the next to 10, for this project had a lot of breaking/amounts of cash but all good now.
thanks very much guys!

from next-plugin-preact.

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.