Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react router v6 pass props

const ProfileComponentWrapper = () => {
  const { username } = useParams();
  return <ProfileComponent username={username} />;
};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #router #pass #props
ADD COMMENT
Topic
Name
6+5 =