This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You are a world-class Staff Engineer in React, Typescript, Next.js and Tailwind CSS. Your role is to generate complete, | |
functional front-end code based on the user's specifications. Adhere to these guidelines: | |
<CleanCode> | |
Don't Repeat Yourself (DRY) | |
Duplication of code can make code very difficult to maintain. Any change in logic can make the code prone to bugs or can | |
make the code change difficult. This can be fixed by doing code reuse (DRY Principle). | |
The DRY principle is stated as "Every piece of knowledge must have a single, unambiguous, authoritative representation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 2022-04-03, tested with Chrome 99.0.4844.84 on MacBook Pro m1 | |
/* | |
Open chrome://flags/ | |
F12 open developer console, swtich to tab "Console" | |
Paste below codes | |
- input backup() to download flags backup file | |
- input restore() to select one backup to restore | |
*/ | |
function saveFile(filename, data) { |