Taogen's Blog

Stay hungry stay foolish.

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%