doug-wade / preact-compat-react

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

So you're a Preact user, but want to use some React libraries with it. You wanted to set up aliases or something, but can't do it for some reason. The solution is simple, though:

yarn add preact preact-compat
yarn add preact-compat/react preact-compat/react-dom

Or if you're not a fan of yarn:

npm i -S preact preact-compat
npm i -S preact-compat/react preact-compat/react-dom

About


Languages

Language:JavaScript 100.0%