diff --git a/README.md b/README.md index 44478b093..0c23a0764 100644 --- a/README.md +++ b/README.md @@ -556,10 +556,11 @@ If you use React Components as grid children, they need to do a few things: For example: ```js -const CustomGridItemComponent = React.forwardRef(({style, className, onMouseDown, onMouseUp, onTouchEnd, ...props}, ref) => { +const CustomGridItemComponent = React.forwardRef(({style, className, onMouseDown, onMouseUp, onTouchEnd, children, ...props}, ref) => { return (
{/* Some other content */} + {children} {/* Make sure to include children to add resizable handle */}
); }