Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#7-Component name as filename in configuration #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![Downloads](https://vsmarketplacebadge.apphb.com/downloads/Qest-cz.react-maker.svg)](https://marketplace.visualstudio.com/items?itemName=Qest-cz.react-maker)
[![Ratings](https://vsmarketplacebadge.apphb.com/rating-short/Qest-cz.react-maker.svg)](https://marketplace.visualstudio.com/items?itemName=Qest-cz.react-maker&ssr=false#review-details)

This extension creates a function component in a named folder with index.tsx
This extension creates a function component in a named folder with index.tsx/{componentName}.tsx

## Usages

Expand All @@ -26,3 +26,6 @@ const ShowCase = (props: Props) => {

export default ShowCase;
```

## Configuration
- `reactMaker.useComponentNameAsFileName`: If filename should be name of component or index.tsx. Default value is index.tsx.
Loading