Vue component to wrap non SSR friendly components
npm install vue-client-only   
``bash`
yarn add vue-client-only
> __This project is previously known as vue-no-ssr, switch to 1.x branch for the old docs.__
`vue
My Website
`
Use a slot or text as placeholder until is mounted on client-side.
eg, show a loading indicator.
`vue
My Website
`
By default the placeholder will be wrapped in a div tag, however you can use placeholderTag prop to customize it:
`vue`
And you get:
`html`
loading
If prop placeholder is an empty string (or null) and no placeholder
slot is found, then will render the Vue placeholder element placholder-tag
instead of rendering the during SSR render.
`bash
yarn install
Contributing
1. Fork it!
2. Create your feature branch:
git checkout -b my-new-feature
3. Commit your changes: git commit -am 'Add some feature'
4. Push to the branch: git push origin my-new-feature`vue-client-only © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).
> egoist.moe · GitHub @egoist · Twitter @_egoistlily