diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml new file mode 100644 index 00000000..a970fb57 --- /dev/null +++ b/.github/workflows/blank.yml @@ -0,0 +1,25 @@ +name: CI + +on: [pull_request, push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Setup Node + uses: actions/setup-node@v1 + with: + node-version: '10' + + - name: Install Dependencies + run: yarn + + - name: Test lint and build + run: | + yarn test + yarn lint + yarn build + diff --git a/README.md b/README.md index bbfca028..54bad530 100755 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# react-no-ssr -> React component to wrap non SSR components +# @mpth/react-no-ssr +> React component to wrap non SSR components, speeding up the eventloop while rendering pages SSR. Works with React >= 16.5.0 When working with Server Side Rendering(SSR) enabled apps, you have to deal with client only components. This wrapper makes it simple to work with those components. [npmjs.com/package/@mpth/react-no-ssr](https://www.npmjs.com/package/@mpth/react-no-ssr) @@ -18,10 +18,12 @@ yarn add @mpth/react-no-ssr import React from 'react'; import NoSSR from '@mpth/react-no-ssr'; import Foo from '../modules/foo'; +import Bar from '../modules/bar'; const Page = () => ( <> -