2.3.0 • Published 3 years ago

@wbe/react-metas v2.3.0

Weekly downloads
254
License
MIT
Repository
github
Last release
3 years ago

@wbe/react-metas

React component middleware of MetasManager.

npm.io npm.io npm.io npm.io

Installation

$ npm install -s @wbe/react-metas

How to use

This component is instanciated in render but don't returns DOM (on the same model as React Helmet).

import { Metas } from "@wbe/react-metas";

const App = () => {
    return (
      <Metas
        values={
          title={"Hello World!"}
          description={"Page description"}
        }
      />
    )
}

Parameters / Props

Parameters are the same than MetasManager.inject() method.

propstypedescriptiondefault value
valuesTMetaTags<string>metas values objects (check MetasManager documentation)/
tagsTMetaTags<TTag[]>metas tags objects (check MetasManager documentation)MetasManager.DEFAULT_META_TAGS
autoCreateMetaTagbooleanauto create meta tagtrue
autoRemoveMetaTagbooleanauto remove meta tagtrue

Returns

null

2.3.0

3 years ago

2.2.0-alpha.0

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

2.0.0-alpha.11

3 years ago

2.0.0-alpha.10

3 years ago

2.0.0-alpha.7

3 years ago

2.0.0-alpha.6

3 years ago

2.0.0-alpha.3

3 years ago

2.0.0-alpha.0

3 years ago

2.0.0-alpha.2

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.5.0-alpha.0

4 years ago