farrow-reactReact adapter for farrow-httpInstallation## via npmnpm install --save farrow-react # via yarnyarn add farrow-reactCopyAPI#// farrow-hooks for rendering react componentimport { useReactView } from 'farrow-react' // react component for auto prefiximport { Link } from 'farrow-react/Link' import { // react-hooks version of usePrefix usePrefix, // access current render context useRenderContext,} from 'farrow-react/hooks' // ReactContext for renderingimport { ReactRenderContext } from 'farrow-react/Context'CopyuseReactView (options?: ReactViewOptions) => { render(element: JSX.Element): Http.Response}#use react for renderingtype ReactResponseOptions = { // config doctype docType?: string} type ReactViewOptions = ReactResponseOptions & { // use stream or string useStream?: boolean} type ReactView = { // render react element to farrow http response render: <T extends JSX.Element>(element: T) => Http.Response}CopyusePrefix(): string#const Test = () => { let prefix = usePrefix() return <div>{prefix}</div>}CopyuseRenderContext(): string#type ReactRenderContext = { // basenames taken from farrow-http basenames: string[]} const Test = () => { let renderContext = useRenderContext() return <div>{renderContext.basenames.join('')}</div>}CopyLink#// Link's props is equal to <a /><Link href="/">a link</Link>Copy