UNPKG

react-icons-weather

Version:

A React component for the weather icons library

26 lines (22 loc) 469 B
import React, { Component } from 'react'; import { render } from 'react-dom'; import WeatherIcon from 'react-icons-weather'; import './styles.css'; const root = document.getElementById('root'); class Example extends Component { constructor(){ super(); } render(){ return ( <WeatherIcon name='owm' iconId='200' className='icon' rotate='90' fixedWidth={true} /> ); } } render(<Example />, root);