# meta-preview

> ReactJS component to preview Google results based on Title, Description and URL

Latest version **1.0.3** (published 2018-06-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install meta-preview
pnpm add meta-preview
yarn add meta-preview
bun add meta-preview
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-06-13 |
| First published | 2018-06-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 467.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 23 |
| Author | Hugo Dias |
| Maintainers | hugooodias |
| Keywords | react, react-component, seo, keywords |

## Links

- npm: https://www.npmjs.com/package/meta-preview
- Repository: https://github.com/hugodias/meta-preview
- Homepage: https://hugodias.github.io/meta-preview
- Issues: https://github.com/hugodias/meta-preview/issues
- npm.io page: https://npm.io/package/meta-preview

## Dependencies (2)

- [react-scripts](https://npm.io/package/react-scripts.md) 1.1.4
- [styled-components](https://npm.io/package/styled-components.md) ^3.3.2

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2018-06-13
- 1.0.2 — 2018-06-13
- 1.0.1 — 2018-06-12
- 1.0.0 — 2018-06-12

## README

## Meta Preview  - [Demo](https://hugodias.github.io/meta-preview/)

A simple ReactJS component to preview how a content will be rendered in Google based on Title, Description and URL.


![Screenshot](https://raw.githubusercontent.com/hugodias/meta-preview/master/public/screenshot.png)

### Install

```console
$ yarn add meta-preview
```

### Usage
```js
import React, { Component } from 'React';
import { MetaPreview } from 'meta-preview';

class MyComponent extends Component {
  constructor(props) {
    super(props);
      
    this.state = {
      title: "Post title",
      link: "https://medium.com/@hugooodias",
      description: "Post Description."
    };

    <!-- handle changes -->
  }

  render() {
    return (
      <MetaPreview
        {...this.state}
        onTitleChange={this.onTitleChange}
        onDescriptionChange={this.onDescriptionChange}
        onLinkChange={this.onLinkChange}
      />
    )
  }
}
```

#### Preview only
```js
import { Preview } from 'meta-preview';

class MyComponent extends Component {
  constructor(props) {
    super(props);
      
    this.state = {
      title: "Post title",
      link: "https://medium.com/@hugooodias",
      description: "Post Description."
    };
  }

  render() {
    return (
      <Preview {...this.state} />
    )
  }
}  
```

---
_Source: https://npm.io/package/meta-preview · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
