Using new google routes api – how can I render (show) route result to a map?

Using “old” google directions api we had directionsService for encapsulating rest query & directionsRenderer to show results to the map.

Directions API example for javascript:

    // 1. init route config
    let route = {
      origin: {
        ...
      },
      destination: {
        ...
      },
      ...
    }

    // 2. link map to renderer
    this.directionsRenderer.setMap(this.map);

    // 3. make request
    this.directionsService
    .route(direction)
    .then((response) => {
      // 4. render route on map
      this.directionsRenderer.setDirections(response);
    })

As for the new routes api: directionsService can be replaced by raw query code (or nodejs lib), but what about directionsRenderer?
How can I apply response[‘routes’] to the map?

I can’t see any examples in official docs, as well as no client library for JS.