base element for react-icons
npm install react-icon-base[![npm][npm-image]][npm-url]
[npm-image]: https://img.shields.io/npm/v/react-icon-base.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/react-icon-base
base element for react-icons
```
npm install react-icon-base --save
`js
import { default as React } from 'react'
import { default as IconBase } from 'react-icon-base'
export default class FaHeart extends React.Component {
render() {
return (
)
}
}
`
`js
class HigherOrderComponent extends Component {
static childContextTypes = {
reactIconBase: PropTypes.object
};
getChildContext() {
return {
reactIconBase: {
color: 'tomato',
size: 24,
style: {
...
}
}
}
}
render() {
...
}
}
`
Context can be overriden inline, like so:
`js``
MIT