From 0f87111733680aa733164b2387bb26741e02eece Mon Sep 17 00:00:00 2001 From: audrey Date: Sun, 23 Jan 2022 17:30:55 +0330 Subject: [PATCH] add yarn installation guideline and fix import directory --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index eb199f6..91f7266 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ ```shell npm install --save react-star-ratings +or +yarn add react-star-ratings ``` ## Heads up @@ -26,7 +28,7 @@ It is a lot more extendable and customizable. ## Usage ```js -import StarRatings from './react-star-ratings'; +import StarRatings from 'react-star-ratings'; class Foo extends Component { changeRating( newRating, name ) {