Skip to content

Commit 79490ed

Browse files
authored
Update README.md to fix error in code snippet (#338)
<> and <React.Fragment> were used inconsistently, the component started with <> but was closed with </React.Fragment> i have replaced <> by <React.Fragment> which is also consistent with other examples.
1 parent 6b98baf commit 79490ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const Control = ({zoomIn, zoomOut, resetTransform}:any)=>(
118118
ref={transformComponentRef}
119119
>
120120
{(utils) => (
121-
<>
121+
</React.Fragment>
122122
<Control {...utils}/>
123123
<TransformComponent>
124124
<img src="image.jpg" alt="test" id="imgExample" />

0 commit comments

Comments
 (0)