Skip to content

Commit

Permalink
Merge branch 'master' of github.com:maapteh/react-no-ssr
Browse files Browse the repository at this point in the history
  • Loading branch information
maapteh committed Nov 23, 2019
2 parents d770b3d + c6fa485 commit c4f039d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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 = () => (
<>
<h2>Page</h2>
<h1>Page</h1>
<Bar />
<NoSSR>
<Foo />
</NoSSR>
Expand Down

0 comments on commit c4f039d

Please sign in to comment.