Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ankitchouhan1020/prefix-classname
https://github.com/ankitchouhan1020/prefix-classname
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ankitchouhan1020/prefix-classname
- Owner: ankitchouhan1020
- Created: 2021-03-14T10:23:01.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-04T09:22:13.000Z (almost 3 years ago)
- Last Synced: 2024-11-18T19:48:05.858Z (about 2 months ago)
- Language: TypeScript
- Size: 1.65 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Conflicting class names and overriding CSS are huge pain in React. An easy solution(not optimal) for this issue is to
add unique prefix in each file's classNames. This tool does that for you. It add unique prefix to classNames in your React files.
### Command
```bash
npx prefix-codemod prefix-classname path_to_folder_or_file
```