From 26ea62460e9966e081e189dbe4bcb94db95807b4 Mon Sep 17 00:00:00 2001 From: Realetive Date: Thu, 31 Dec 2020 02:35:41 +0300 Subject: [PATCH] Replace ReactType (deprecated) to ElementType --- packages/core/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/README.md b/packages/core/README.md index 53c85581..835a5b72 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -30,12 +30,12 @@ Follow the guide. In your `Components/Button/index.tsx`, you define the type of props your button can get within the interface that extends **IClassNameProps** from '@bem-react/core' : ```ts -import { ReactType } from 'react' +import { ElementType } from 'react' import { IClassNameProps } from '@bem-react/core' import { cn } from '@bem-react/classname' export interface IButtonProps extends IClassNameProps { - as?: ReactType + as?: ElementType } export const cnButton = cn('Button')