Skip to content

Instantly share code, notes, and snippets.

@radekwarisch
Created January 31, 2021 15:11
Show Gist options
  • Save radekwarisch/c2b147bb30700b7799ba48831a88b052 to your computer and use it in GitHub Desktop.
Save radekwarisch/c2b147bb30700b7799ba48831a88b052 to your computer and use it in GitHub Desktop.
Newly generated component
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