0.0.27 • Published 4 years ago

ragu-react-server-adapter v0.0.27

Weekly downloads
167
License
MIT
Repository
github
Last release
4 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

4 years ago

0.0.26

4 years ago

0.0.25

4 years ago

0.0.23

4 years ago

0.0.22

4 years ago

0.0.20

4 years ago

0.0.21

4 years ago

0.0.19

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago