Skip to content

Commit 253dbf2

Browse files
committed
[fixed] onLoad propname in readme
1 parent 0fb9ea5 commit 253dbf2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ With React 0.13, mixins are getting deprecated in favor of composition.
1313
After reading this article, [Mixins Are Dead. Long Live Composition][dan_abramov],
1414
I decided push react-script-loader a bit further and make a composition function that wraps component.
1515

16-
1716
## Usage
1817

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

6665
React.render(
67-
<ReCAPTHAWrapper onLoad={onLoad} {...reCAPTCHAprops} />,
66+
<ReCAPTHAWrapper asyncScriptOnload={onLoad} {...reCAPTCHAprops} />,
6867
document.body
6968
);
7069
```

0 commit comments

Comments
 (0)