Skip to content

Commit 7201934

Browse files
committed
README typos
1 parent f3f92c7 commit 7201934

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ export default MyImage;
6666

6767
| Prop | Type | Default | Description |
6868
|:---|:---|:---|:---|
69-
| onLoad | `Function` | | Function called when the image has been loaded. This is the same function as the `onLoad` of a `<img>` which contains an event object. |
70-
| afterLoad | `Function` | | Deprecated, use `onLoad` instead. This props is only for backward compatibility. |
69+
| onLoad | `Function` | | Function called when the image has been loaded. This is the same function as the `onLoad` of an `<img>` which contains an event object. |
70+
| afterLoad | `Function` | | Deprecated, use `onLoad` instead. This prop is only for backward compatibility. |
7171
| beforeLoad | `Function` | | Function called right before the placeholder is replaced with the image element. |
7272
| delayMethod | `String` | `throttle` | Method from lodash to use to delay the scroll/resize events. It can be `throttle` or `debounce`. |
7373
| delayTime | `Number` | 300 | Time in ms sent to the delayMethod. |
@@ -189,8 +189,8 @@ You must set the prop `scrollPosition` to the lazy load components. This way, th
189189
| Prop | Type | Default | Description |
190190
|:---|:---|:---|:---|
191191
| scrollPosition | `Object` | | Object containing `x` and `y` with the curent window scroll position. Required. |
192-
| onLoad | `Function` | | Function called when the image has been loaded. This is the same function as the `onLoad` of a `<img>` which contains an event object. |
193-
| afterLoad | `Function` | | Deprecated, use `onLoad` instead. This props is only for backward compatibility. |
192+
| onLoad | `Function` | | Function called when the image has been loaded. This is the same function as the `onLoad` of an `<img>` which contains an event object. |
193+
| afterLoad | `Function` | | Deprecated, use `onLoad` instead. This prop is only for backward compatibility. |
194194
| beforeLoad | `Function` | | Function called right before the image is rendered. |
195195
| placeholder | `ReactClass` | `<span>` | React element to use as a placeholder. |
196196
| threshold | `Number` | 100 | Threshold in pixels. So the image starts loading before it appears in the viewport. |

0 commit comments

Comments
 (0)