Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 675 Bytes

efc.md

File metadata and controls

21 lines (17 loc) · 675 Bytes

Title: Extract File Component Description: Extracts into its own (camel-case) file React component with destructured props and inline type. Avoid prop drilling, especially using context hooks (including react-query). Body:

export function ${1:ComponentName}({ ${2:prop}, ...props }: { ${2}: ${3:type} }) { return ( $0 ) }

Example

Title: Extract File Component Description: Extracts into its own (camel-case) file React component with destructured props and inline type. Avoid prop drilling, especially using context hooks (including react-query). Body:

export function ${1:ComponentName}({ ${2:prop}, ...props }: { ${2}: ${3:type} }) { return ( $0 ) }