to generate a GitHub report example url = 'https://chat.pipk.top/githubReport/<userName>'; 1.just use it as your react component you can input it while your router change const GithubReport = props => ( <div className="github-report"> <Github {...props} /> </div> ); // router <Route path="/githubReport/:name" component={GithubReport} />