Created
January 31, 2021 15:11
-
-
Save radekwarisch/c2b147bb30700b7799ba48831a88b052 to your computer and use it in GitHub Desktop.
Newly generated component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
type PropsType = Readonly<{ | |
data: Record<string, unknown>, | |
type: number, | |
isActive: boolean, | |
items: Array<unknown>, | |
}>; | |
const NewComponent = ({data, type, isActive, items}: PropsType) => { | |
return <div data-testid="new-component" />; | |
}; | |
export default React.memo<PropsType>(NewComponent); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment