ragu-client-react
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Ragu

Ragu Client React

Testing Coverage Status License: MIT npm version PRs Welcome

A React Client for Ragu Server - A micro-frontend framework.

Installation

npm install ragu-client-react

Usage

import {RaguComponent} from "ragu-client-react";


<RaguComponent src="https://my-micro-frontend-url/" />
Property Description Required Default
src The micro-frontend URL true -
wrapper The tag that wraps the micro-frontend false "div"
prefetchResponse A pre-fetch HTML version of the component (used for SSR) false -
onFetchCompleted A callback called when component fetch is finished. false -
onFetchFail A callback called when component fetch fails. false -
onHydrateCompleted A callback called when component was hydrated (it means, the render process finished) false -

Readme

Keywords

none

Package Sidebar

Install

npm i ragu-client-react

Weekly Downloads

3

Version

0.0.3

License

MIT

Unpacked Size

8.13 kB

Total Files

5

Last publish

Collaborators

  • carlosmaniero