Skip to content

Navigation Menu

Sign in
Sign up

Live Templates

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

Clone this wiki locally

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