get data from url react code example
Example: get data from url react
import React from "react";
import ReactDOM from "react-dom";
import { BrowserRouter, Route } from "react-router-dom";
const AppRouter = () => (
} />
);
const App = (props) => {
const { parameter1, parameter2, parameter3 } = props.match.params;
return (
First: {parameter1}
Second: {parameter2}
Third: {parameter3}
);
};
ReactDOM.render( , document.getElementById("root"));