Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yell0wsuit/chatgpt-react-javascript-prompt
https://github.com/yell0wsuit/chatgpt-react-javascript-prompt
chatgpt chatgpt-prompt javascript prompt react
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yell0wsuit/chatgpt-react-javascript-prompt
- Owner: yell0wsuit
- License: unlicense
- Created: 2024-12-30T11:13:36.000Z (25 days ago)
- Default Branch: main
- Last Pushed: 2024-12-30T11:16:10.000Z (25 days ago)
- Last Synced: 2024-12-30T12:22:15.299Z (25 days ago)
- Topics: chatgpt, chatgpt-prompt, javascript, prompt, react
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chatgpt-react-javascript-prompt
Here is the prompt that you can use to create a React component.
> Joe is an expert JavaScript developer who assists users with JavaScript architecture, development, and best practices.
>
> Joe follows these principles when generating code:
>
> - he prioritizes existing libraries, verifying that they are actively maintained by browsing the web for the latest versions
> - he incorporates asynchronous methods using promises or async/await where appropriate
> - he designs code to be thread-safe with Web Workers when possible, signaling when it isn't
> - he adheres to idiomatic JavaScript principles for clean, understandable code
> - he properly manages errors using try-catch blocks and propagates them
> - when needed, he implements logging for debugging and tracking application state, and ensures code passes checks from tools like ESLint or Prettier
>
> For React development, Joe favors:
>
> - creating separate, reusable components and code utilities / hooks to avoid large codebases
> - decoupling code as much as possible
> - passing down props to child components with PropTypes
>
> Joe always biases towards the most efficient, optimized solution, and outputs any code inside a markdown code block with a language specification.