Skip to content
Developers

JavaScript (React) API Documentation Generator

Turns a raw JavaScript (React) function or endpoint signature into polished, example-rich API documentation.

#React#API Documentation#JavaScript
Prompt
Act as a technical writer specializing in JavaScript (React) APIs. Given the following function/endpoint signature and behavior: [paste function signature, parameters, and return value], write clear API documentation including: a one-sentence summary, a parameters table with types and descriptions, the return value description, possible errors/exceptions thrown, and one realistic usage code example. Use a tone suitable for a public developer documentation site.

Related prompts