Taogen's Blog

Stay hungry stay foolish.

After create a React project by some CLI tools, we need to create some folders to structure the project. React official said they doesn’t have opinions on how you put files into folders. In my personal opinion, I recommend to use the following folder structure.

Read more »

Creating a Dockerfile is a critical part of building container images. Following best practices not only leads to optimized images but also enhances security and maintainability. The following are some best practices to consider when writing your Dockerfile.

Read more »

Naming Conventions

File Names

Component files: Use CamelCase. E.g. MyComponent.js

Non-component files (like helpers, hooks, or utilities): Use kebab-case or camelCase. E.g. useCustomHook.js or myUtility.js.

Custom hooks files: with a use prefix. E.g. useFetch.jsuseForm.js.

Directory Names

Use kebab-case for folder names. E.g. my-foldercomponentsutils.

Test folder name: __tests__

0%