Skip to content

Live Templates

Leonid Fenko edited this page Jun 13, 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$) => ()}
  • expс (export component)
export {$COMPONENT_NAME$, Props as $COMPONENT_NAME$Props} from './$COMPONENT_NAME$'
  • mwm (${mediaWidth.m})
${mediaWidth.m} {
    $END$
}

Clone this wiki locally