2.3.0 • Published 3 years ago
@wbe/react-metas v2.3.0
@wbe/react-metas
React component middleware of MetasManager.
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.
props | type | description | default value |
---|---|---|---|
values | TMetaTags<string> | metas values objects (check MetasManager documentation) | / |
tags | TMetaTags<TTag[]> | metas tags objects (check MetasManager documentation) | MetasManager.DEFAULT_META_TAGS |
autoCreateMetaTag | boolean | auto create meta tag | true |
autoRemoveMetaTag | boolean | auto remove meta tag | true |
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