1.0.2 • Published 7 years ago
create-easy v1.0.2
Create Styled React Component
Installation
npm install -g create-easyAction
☁ ~ create-easy garden
Garden.js createdResult
☁ ~ 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