What I want to achieve Inside React I want to fetch an HTML page with fetch and from the response i get I want to extract some data from a div with a class called "myDiv"
The data I am fetching are in an HTML format. Current I have this code which fetch the data and resolves the response in a text format.
fetch('/my/url')
.then(response => response && response.text())
.then(text => console.log('Do something that extract content in class "myDiv"));