Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
</p>
<p align="center">
<strong>
<a href="https://facebook.github.io/react/">React</a> high order component to drive <a href="https://github.com/WICG/web-share">web share</a> widget on react applications 📌.
<a href="https://facebook.github.io/react/">React</a> higher-order component to drive <a href="https://github.com/WICG/web-share">web share</a> widget on react applications 📌.
</strong>
<br><br>
<a href="https://npmjs.com/package/react-web-share-api">
Expand Down Expand Up @@ -36,7 +36,7 @@ npm install react-web-share-api --save

## Usage

Consume the UI component in the higher order component `button.js`:
Consume the UI component in the higher-order component `button.js`:

```js
import React from "react";
Expand All @@ -49,7 +49,7 @@ const Button = ({ share, isSupported }) => isSupported
export default webShare<OwnProps>()(Button);
```

Pass the configuration to the higher order component `smartComponent.js`:
Pass the configuration to the higher-order component `smartComponent.js`:

```js
import React from "react";
Expand All @@ -70,7 +70,7 @@ It takes a configuration prop that define how the native widget should behave an

#### Does it support Redux or any other flux implementation?

Yes, the configuration is injected from the parent component. In this way it does not matter which flux implementation you are using. At the same time, we are preserving the high order component pattern so you have complete control on the renderer and on the action handler.
Yes, the configuration is injected from the parent component. In this way it does not matter which flux implementation you are using. At the same time, we are preserving the higher-order component pattern so you have complete control on the renderer and on the action handler.

#### Does it support Typescript?

Expand All @@ -85,7 +85,7 @@ Parameter | Type | Description
isSupported | boolean | True if the web share api is supported by the browser.
share | function: () => WebShare | It will open the share native widget.

Configuration of the high order component:
Configuration of the higher-order component:

Parameter | Type | Description
-------------- | ------------------------------- | -----------
Expand Down