Add Favicons to the head of your React app
Little React component to add multiple meta tags for different sized favicons to your app's document head
.
Generate all your icons using Favic-o-Matic and copy them into a directory in your project e.g. static/images/meta
, then:
import ReactFavic from 'react-favic'
<Head>
<meta
name='viewport'
content='initial-scale=1.0, width=device-width'
key='viewport'
/>
<meta charSet='utf-8' />
<title>Example Site</title>
<ReactFavic
name='Lesson Desk Head Office'
color='#797979'
href='static/images/meta'
/>
</Head>
This project uses node and npm.
$ npm install react-favic
$ # OR
$ yarn add react-favic
- Fork it and create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am "Add some feature"
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
MIT © [[object Object]]([object Object])