From e43f260f9d27352f499e438ecf68a80c35eb7893 Mon Sep 17 00:00:00 2001 From: Adam Chainz Date: Sat, 16 Apr 2016 17:20:29 +0100 Subject: [PATCH] Update README.md Correct grammar - "its" is for possessive usage. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c4785c4..d76d263 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ https://react-sizeme-example-esbefmsitg.now.sh ## Simple Example -Below is a partial example highlighting the use of the library. Read the Usage section in it's entirety for a full description on configuration and usage. +Below is a partial example highlighting the use of the library. Read the Usage section in its entirety for a full description on configuration and usage. ```javascript class MyComponent extends Component { @@ -52,13 +52,13 @@ First install the library. npm install react-sizeme ``` -Then identify a Component you would like to make aware of it's size. We provide you with a helper function called `SizeMe`. You can import it like so: +Then identify a Component you would like to make aware of its size. We provide you with a helper function called `SizeMe`. You can import it like so: ```javascript import SizeMe from 'react-sizeme'; ``` -You first have to pass the `SizeMe` function a configuration object. The entire configuration object is optional, as is each of it's properties, in which case the defaults would be used. Here is a full configuration example with the default values for each of the properties: +You first have to pass the `SizeMe` function a configuration object. The entire configuration object is optional, as is each of its properties, in which case the defaults would be used. Here is a full configuration example with the default values for each of the properties: ```javascript const SizeMeHOC = SizeMe({ @@ -189,4 +189,4 @@ We make use of the awesome [element-resize-detector](https://github.com/wnr/elem ## Caveats. * Server Side Rendering is not supported. I am still thinking of the best approach on what to do in the case of a SSR request. Perhaps I will just return null values for width/height. Undecided. Any recommendations are welcome. -* Whilst execution is performant and we try and do smart rendering mechanisms we don't recommend that you place a crazy amount of size aware components into your render tree. If you do require this I highly recommend you do some decent browser testing for impact. \ No newline at end of file +* Whilst execution is performant and we try and do smart rendering mechanisms we don't recommend that you place a crazy amount of size aware components into your render tree. If you do require this I highly recommend you do some decent browser testing for impact.