Connect Widget with react app

Hello, does anyone have a repository where I can learn how to connect the widgets with my react application?
I have done everything that the documentation says, but I can only open metamask and it no longer returns the data, I would like to know what I am doing wrong. Thanks