UNPKG

ts-react-display-name

Version:

Typescript transformer that adds displayName to React components

8 lines (7 loc) 345 B
import * as React from 'react'; var TestComponent = function () { var TestComponentNested = function () { return React.createElement("p", null, "returned value nested"); }; TestComponentNested.displayName = "TestComponentNested" return React.createElement("p", null, "returned value"); }; TestComponent.displayName = "TestComponent"