0.0.27 • Published 3 years ago

ragu-react-server-adapter v0.0.27

Weekly downloads
167
License
MIT
Repository
github
Last release
3 years ago

Testing Coverage Status License: MIT npm version PRs Welcome

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

Installation

yarn install ragu-cli
yarn install ragu-react-server-adapter

Exposing a Component

Create a file that exposes a single function that returns your component:

# my-mfe.jsx
export default () => <MyReactComponent />

After, start the ragu server using the cli:

yarn ragu-cli dev --file my-mfe.jsx

Open your browser at http://localhost:3100/preview to check your micro-frontend live!

That's all!

Build to production

yarn ragu-cli static --file my-mfe.jsx --baseurl https://mycdnhost/mymfe --output production

It will create a directory called production with a file called index.json.

Using your component

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


<RaguComponent src="https://mycdnhost/mymfe/index.json" />

Check The docs for More: https://ragu-framework.github.io/#!/ragu-react-server-adapter

0.0.27

3 years ago

0.0.26

3 years ago

0.0.25

3 years ago

0.0.23

3 years ago

0.0.22

3 years ago

0.0.20

3 years ago

0.0.21

3 years ago

0.0.19

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago