The React hook for adding Doko meta tags.
Doko provides a meta
tag based standard for web applications to express useful information about the environment. This assists developers and testers to ensure they are accessing the right environment without having to make visual changes to the user interfaces.
In addition we provide browser plugins to overlay this information over a web interface.
This repository contains the source to a React hook that makes it easy to add the Doko meta tags to the document <head>
.
Head to the main repository for information on the protocol, browser plugins and our roadmap.
This package is distributed via npm.
You can install with npm
npm install --save @anomalyhq/use-doko
or with yarn
yarn add @anomalyhq/use-doko
import useDoko from '@anomalyhq/use-doko';
const App = () => {
useDoko({
env: 'production',
title: 'useDoko',
subtitle: 'A hook to provide Doko meta tags',
facts: [
{
key: 'Host',
value: 'Github'
}
],
report: 'http://github.com/anomaly/use-doko/issues/new'
})
return(
...
)
}
export default App;
Distributed under the Apache 2.0 License. See LICENSE for further information.