Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix typos #196

Merged
merged 1 commit into from Oct 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -26,7 +26,7 @@ React developers think in terms of components and not about loading external scr

**Features**

- Enforce async loading the JS SDK up front so when it's time to render the buttons to your buyer, they render immediately.
- Enforce async loading the JS SDK upfront so when it's time to render the buttons to your buyer, they render immediately.
- Abstract away the complexity around loading the JS SDK with the global [PayPalScriptProvider](https://paypal.github.io/react-paypal-js/?path=/docs/example-paypalscriptprovider--default) component.
- Support dispatching actions to reload the JS SDK and re-render components when global parameters like `currency` change.
- Easy to use components for all the different Braintree/PayPal product offerings:
Expand Down Expand Up @@ -91,7 +91,7 @@ The [JS SDK Configuration guide](https://developer.paypal.com/docs/business/java

Use the optional PayPalScriptProvider `deferLoading` prop to control when the JS SDK script loads.

- This prop is set to false by default since we usually know all the sdk script params up front and want to load the script right way so components like `<PayPalButtons />` render immediately.
- This prop is set to false by default since we usually know all the sdk script params upfront and want to load the script right away so components like `<PayPalButtons />` render immediately.
- This prop can be set to true to prevent loading the JS SDK script when the PayPalScriptProvider renders. Use `deferLoading={true}` initially and then dispatch an action later on in the app's life cycle to load the sdk script.

```jsx
Expand Down