The fetch return string in react contains a label on how to add react routing.

fetch(url)
        .then(res => res.text())
        .then(result => {
            this.setState({
                detail: result
            });
        });

render () {

    return (
        <div
            dangerouslySetInnerHTML={{ __html:this.state.detail }}
        />
    );
}

tag

the result is how can some a tags be changed to route jump
< Link to= {} > < / Link >


extract the links from the returned an and put them into an object
traverse the object to generate link

var data = process(this.state.detail) // {href: 'www.baid.com'}

<div>
<Link to={data.href} />
</div>
Menu