@uploadcare/react-uploader 0.2.0 → 0.3.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -103,8 +103,8 @@ import {FileUploaderRegular} from "@uploadcare/react-uploader";
103
103
 
104
104
  ## File Uploader API
105
105
 
106
- For convenience, we provide the ability to access the File Uploader API using `refUploadCtxProvider`.
107
- You can see what methods are available in `refUploadCtxProvider` in the [documentation][uc-docs-file-uploader-api].
106
+ For convenience, we provide the ability to access the File Uploader API using `apiRef`.
107
+ You can see what methods are available in `apiRef` in the [documentation][uc-docs-file-uploader-api].
108
108
  It is important to note that we now pass all InstanceType from UploadCtxProvider.
109
109
 
110
110
  ```jsx
@@ -118,7 +118,7 @@ const Example = () => {
118
118
  const uploaderRef = useRef < InstanceType < UploadCtxProvider > | null > (null);
119
119
 
120
120
 
121
- <FileUploaderRegular refUploadCtxProvider={uploaderRef} pubkey="YOUR_PUBLIC_KEY"/>;
121
+ <FileUploaderRegular apiRef={uploaderRef} pubkey="YOUR_PUBLIC_KEY"/>;
122
122
  }
123
123
  ```
124
124