Skip to content

Navigation Menu

Sign in
Sign up

Live Templates

Leonid Fenko edited this page Jun 13, 2019 · 3 revisions
  • rc (react component)
import * as React from 'react';
import styled from 'styled-components';
import { CommonProps } from '../../../common/types/CommonProps';
interface Props extends CommonProps {}
const $COMPONENT_NAME$: React.FC<Props> = ({ className }) => {
 return <Root className={className}>$COMPONENT_NAME$</Root>;
};
const Root = styled.div``;
export { $COMPONENT_NAME,ドル Props };
  • scs (styled-components css function)
${({}: $END$) => ()}
  • erc (export react component)
export {$COMPONENT_NAME,ドル Props as $COMPONENT_NAME$Props} from './$COMPONENT_NAME$'
  • mwm (${mediaWidth.m})
${mediaWidth.m} {
 $END$
}

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /