@curveball/browser
Version:
Automatic API browser generator. A middleware that turns your JSON responses into HTML if accessed by a browser.
10 lines • 347 B
JavaScript
import * as React from 'react';
export function Description(props) {
if (props.resourceState.data.description && typeof props.resourceState.data.description === 'string') {
return React.createElement("p", null, props.resourceState.data.description);
}
else {
return null;
}
}
//# sourceMappingURL=description.js.map