# @limeyfy/react-seo

> A library to help with easily maintain good SEO in react. Made by "https://github.com/notlimey"

Latest version **2.0.2** (published 2022-05-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install @limeyfy/react-seo
pnpm add @limeyfy/react-seo
yarn add @limeyfy/react-seo
bun add @limeyfy/react-seo
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2022-05-31 |
| First published | 2022-02-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 53.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Limey |
| Maintainers | limey |
| Keywords | react, seo |

## Links

- npm: https://www.npmjs.com/package/@limeyfy/react-seo
- Repository: https://github.com/Limeyfy/react-seo
- Homepage: https://github.com/Limeyfy/react-seo#readme
- Issues: https://github.com/Limeyfy/react-seo/issues
- npm.io page: https://npm.io/package/@limeyfy/react-seo

## Dependencies (4)

- [react](https://npm.io/package/react.md) ^17.0.2
- [react-helmet](https://npm.io/package/react-helmet.md) ^6.1.0
- [styled-components](https://npm.io/package/styled-components.md) ^5.3.0
- [react-helmet-async](https://npm.io/package/react-helmet-async.md) ^1.2.3

## 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

- 2.0.2 (latest) — 2022-05-31
- 2.0.1 — 2022-05-31
- 2.0.0 — 2022-05-31
- 1.7.3 — 2022-04-03
- 1.7.2 — 2022-04-03
- 1.5.0 — 2022-03-28
- 1.4.0 — 2022-03-28
- 1.3.0 — 2022-03-02
- 1.2.0 — 2022-02-28
- 1.1.0 — 2022-02-25
- 1.0.0 — 2022-02-25

## README

# React Better SEO
Maintaining good seo in react is not easy in itself. You can always use react-helmet to help you but understanding all the meta tags and so on can be hard. Therefore I made a npm package to help with easily maintaining good seo.

The package is based on https://www.npmjs.com/package/react-helmet.

## Getting started

```terminal
npm i --save @limeyfy/react-seo
// or
yarn add @limeyfy/react-seo
```

- [Whats new in v.2.0.0?](#whats-changed-in-200)

### Example

```jsx
import './App.css';
import { BetterHelmet } from '@limeyfy/react-seo'

const App = () => {
  return (
    <div className="App">
      <BetterHelmet title="Hey" subTitle="cool" />
    </div>
  );
}

export default App;
```

### Test SEO

```jsx
import './App.css';
import React, { useEffect } from 'react'
import { BetterHelmet, useSeo } from '@limeyfy/react-seo'

const App = () => {
  const { result } = useSeo();

  console.log(result())

  return (
    <div className="App">
      <BetterHelmet
        title="Limeyfy"
        subTitle="App"
      >
        <meta name='og:country-name' content='NORWAY'>
      </BetterHelmet>
    </div>
  );
}

export default App;
```

### Another example

```jsx
import './App.css';
import { BetterHelmet } from '@limeyfy/react-seo'

const App = () => {
  return (
    <div className="App">
      <BetterHelmet
        title="Limeyfy"
        subTitle="App"
      >
        <meta name='og:country-name' content='NORWAY'>
      </BetterHelmet>
    </div>
  );
}

export default App;
```

### Params

- title?: <code>string</code>;
- subTitle?: <code>string</code>;
- title?: <code>string</code>;
- subTitle?: <code>string</code>;
- titleDivider?: <code>string</code>;
- keywords?: <code>string</code>;
- themeColor?: <code>string</code>;
- description?: <code>string</code>;
- subject?: <code>string</code>;
- copyright?: <code>string</code>;
- language?: <code>string</code>;
- robots?: <code>string</code>;
- revised?: <code>string</code>;
- topic?: <code>string</code>;
- summary?: <code>string</code>;
- Classification?: <code>string</code>;
- author?: <code>string</code>;
- replyTo?: <code>string</code>;
- owner?: <code>string</code>;
- url?: <code>string</code>;
- identifierURL?: <code>string</code>;
- image?: <code>string</code>;
- favIcon?: <code>string</code>;
- children?: <code>React.ReactNode</code>;


## Whats changed in 2.0.0?

- DefaultHelmet has changed name to BetterHelmet
- Small performance updates to the BetterHelmet and made the component less complicated
- Exporting BetterHelmetProps

Note that you can still use the name DefaultHelmet but it will deprecate in the next version

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