OpenRPC documentation as a react component.
This Stellar-specific package was forked from @metamask/open-rpc-docs-react
This is a react component that will render documentation for a given OpenRPC document.
npm install --save @stellar/open-rpc-docs-react
import Method from '@stellar/open-rpc-docs-react';
and then use it somewhere in a project:
<Method method={method} />
When linking this project with others, use yarn link:setup
to avoid getting errors about hooks / multiple react versions.