From acfe2cc2acc677d08fb8edf8ce04796634d8edf8 Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Sun, 2 Feb 2020 10:39:46 -0600 Subject: [PATCH] Update README.md --- README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ef5f55b..2c93de0 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,14 @@ -So you're a [Preact](https://preactjs.com/) user, but want to use some React libraries with it. You wanted to [set up aliases or something](https://preactjs.com/guide/switching-to-preact#easy-preact-compat-alias), but can't do it for some reason. The solution is simple, though: +So you're a [Preact](https://preactjs.com/) user, but want to use some React libraries with it. You wanted to [set up aliases or something](https://preactjs.com/guide/v10/getting-started#aliasing-react-to-preact), but can't do it for some reason. + +The `preact-compat/react` and `preact-compat/react-dom` alias repositories are here for you! +Install them as you would any other npm module, and these aliases will be used from Github: ``` -yarn add preact preact-compat -yarn add preact-compat/react preact-compat/react-dom +npm i -S preact preact-compat/react preact-compat/react-dom ``` -Or if you're not a fan of [yarn](http://yarnpkg.com/): +... or for Yarn users: -``` -npm i -S preact preact-compat -npm i -S preact-compat/react preact-compat/react-dom +```sh +yarn add preact preact-compat/react preact-compat/react-dom ```