Skip to content

Commit

Permalink
[fixed] onLoad propname in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dozoisch committed Oct 15, 2015
1 parent 0fb9ea5 commit 253dbf2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ With React 0.13, mixins are getting deprecated in favor of composition.
After reading this article, [Mixins Are Dead. Long Live Composition][dan_abramov],
I decided push react-script-loader a bit further and make a composition function that wraps component.


## Usage

The api is very simple `makeAsyncScriptLoader(Component, scriptUrl, options)`. Where options can contain exposeFuncs, callbackName and globalName.
Expand Down Expand Up @@ -64,7 +63,7 @@ let reCAPTCHAprops = {
};

React.render(
<ReCAPTHAWrapper onLoad={onLoad} {...reCAPTCHAprops} />,
<ReCAPTHAWrapper asyncScriptOnload={onLoad} {...reCAPTCHAprops} />,
document.body
);
```
Expand Down

0 comments on commit 253dbf2

Please sign in to comment.