Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
- Use variable inference (`const`, `let`) whenever possible
Sign in to like and favorite skills
const, let) whenever possibleany types, prefer unknown insteadswitch/case for conditional renderingexport default for the component at the end of the filetry/catch for synchronous and asynchronous errorsundefined or null over magic valuesuseState, useReducer) for component-specific statefetch over axios for HTTP requestsapi/ directory)useEffect for side effectsComponentName.test.tsx or hookName.test.tsmethod_scenario_expectedResultdescribe and it/test blocks for structurejest for testingbeforeEach for common setupjest.fn() and jest.mock() for mockingaxe or similar)jest and @testing-library/reactscreen and userEvent for queries and interactionsexpect(...).toBe... and expect(...).toHave... assertionsjest.spyOn for function/method mocksjest.mock for module mocksjest.fn for simple function mockstoStrictEqual instead of toEqual for deep equality checksdescribe for grouping by method or scenarioit/test for individual casesbeforeEach for setupafterEach for cleanup