code: function transform(path) {
      if (shouldProcess(path)) {
          const renderer = Renderer.forPath(path);
          transformer(path.node, renderer, buildErrorHandler(path));
          // replace the render call if present, else replace the JSX
          if (Renderer.isParent(path)) {
              path.parentPath.replaceWith(renderer.toFunctionCall());
          } else {
              path.replaceWith(renderer.toFunctionCall());
          }
      }
  }
docs: Transforms the given path (if it should be processed).