From af3d6b68f3f35589ebb64658caab37fa0fe82a91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arda=20=C3=96rkin?= Date: Tue, 21 Mar 2023 18:12:43 +0300 Subject: [PATCH] use node instead element because it is specified as node in ResizeCallbackData type definition (#214) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2d557b20..53eb4617 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ class Example extends React.Component { }; // On top layout - onResize = (event, {element, size, handle}) => { + onResize = (event, {node, size, handle}) => { this.setState({width: size.width, height: size.height}); };