react router route pass props to component code example Example: react route props ( )} exact={true} />