-
Notifications
You must be signed in to change notification settings - Fork 2
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$
}
Спасибо за чтение документации ✨
- Home
- Backend
- Frontend Server
-
Frontend
- Структура компонента приложения
- Структура проекта
- Правила именования
- Конфиги
- Источники данных
- Роутинг
- Иконки и картинки
- Шрифты
- Изменение тегов HEAD
- Адаптивность
- Сторонний CSS
- Favicon
- Cache Busting
- Code Splitting
- Обработка ошибок
- Общие компоненты
- Полезные компоненты в других проектах
- Live Templates
- Apollo и REST