UNPKG

346 BJavaScriptView Raw
1// @flow
2import styled from './base'
3import { tags } from './tags'
4
5// bind it to avoid mutating the original function
6const newStyled = styled.bind()
7
8tags.forEach(tagName => {
9 // $FlowFixMe: we can ignore this because its exposed type is defined by the CreateStyled type
10 newStyled[tagName] = newStyled(tagName)
11})
12
13export default newStyled