# react-html-tag-attributes

> Add attributes to the tag on mount

Latest version **1.0.0** (published 2021-05-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-html-tag-attributes
pnpm add react-html-tag-attributes
yarn add react-html-tag-attributes
bun add react-html-tag-attributes
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-05-17 |
| First published | 2021-05-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | vasilevich |
| Maintainers | vasilevich |

## Links

- npm: https://www.npmjs.com/package/react-html-tag-attributes
- Repository: https://github.com/vasilevich/react-html-tag-attributes
- Homepage: https://github.com/vasilevich/react-html-tag-attributes#readme
- Issues: https://github.com/vasilevich/react-html-tag-attributes/issues
- npm.io page: https://npm.io/package/react-html-tag-attributes

## Recent versions

- 1.0.0 (latest) — 2021-05-17

## README

[![npm version](https://badge.fury.io/js/react-html-tag-attributes.svg)](https://www.npmjs.com/package/react-html-tag-attributes)
# react-html-tag-attributes

Simple React component that lets you insert attributes into the <html> tag from basically anywhere.
as long as it is mounted.   

once the component is unmounted, the previous attributes are back.



## Usage

* Install.
```bash
yarn add react-html-tag-attributes
```

* Require component.
```js
import HtmlTags from 'react-html-tag-attributes';
```

* Setup and render.
```jsx
import React, { Component } from "react";
import HtmlTags from 'react-html-tag-attributes';

class App extends Component {
  render() {
    return (
      <div className="App">
          <HtmlTags itemtype="https://schema.org/FAQPage"/>
      </div>
    );
  }
}

export default App;
```

or typescript:
```tsx
import * as React from 'react';
import HtmlTags from 'react-html-tag-attributes';


export class App extends React.Component<any, any> {
  render() {
    return (
        <div>
            <HtmlTags itemtype="https://schema.org/FAQPage"/>
        </div>
    );
  }
}

```

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