Create Styled React Component
Installation
npm install -g create-easy
Action
☁ ~ create-easy garden
Garden.js created
Result
☁ ~ cat Garden.js
import React from 'react'
import styled from 'styled-components'
const GardenStyle = styled.div`
opacity: 1
`
const Garden = props => (
<GardenStyle>Hello {props.text}</GardenStyle>
)
export default Garden