The 'render' prop in <Route> inside a <Switch> specifies a function that returns a React element to render when the route matches the current location.