Closed shanejonas closed 5 years ago
This is a react component that will render documentation for a given OpenRPC document.
Screenshot:
npm install --save @open-rpc/docs-react
import Documentation from "@open-rpc/docs-react";
and then use it somewhere:
<Documentation schema={schema} />
Here's how it would be used in a new npm init react-app --typescript <appname> project:
npm init react-app --typescript <appname>
import React from "react"; import ReactDOM from "react-dom"; import Documentation from "@open-rpc/docs-react"; const schema = { "info": { "title": "My New API" } }; ReactDOM.render(<Documentation schema={schema} />, document.getElementById("root"));
:tada: This issue has been resolved in version 1.0.4 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
docs-react
What is this?
This is a react component that will render documentation for a given OpenRPC document.
Screenshot:
How do I use this?
Installation:
Usage:
and then use it somewhere:
In a new project:
Here's how it would be used in a new
npm init react-app --typescript <appname>
project: