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