0.0.5 • Published 4 years ago

@rubys/react-hook-middleware v0.0.5

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

Converts your express web server into a React Application Server

QuickStart

yarn add @rubys/react-hook-middleware

const middleware = require('@rubys/react-hook-middleware');

app.use(middleware(appDir));

Start your web server, and .js files dropped into the appDir directory will be served as web applications.

The requirements for application files to be served:

  • they must import 'React'
  • they must export a default function
  • this function must either return a result (typically a JSX element) or send a response or call the next function.

To run the demo:

git clone https://github.com/rubys/react-hook-middleware.git
cd react-hook-middleware
yarn install
yarn demo
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