RedFlag GreenFlag Refactor
Déclaration Execution Verification
RedFlag GreenFlag Refactor
Déclaration Execution Verification
const Child = ({ name, onUpdate }: any) => { | |
const [optimisticName, setOptimisticName] = useOptimistic(name); | |
const [message, submitAction, isPending] = useActionState( | |
async(_: unknown, formData: FormData) => { | |
try { | |
setOptimisticName(formData.get("name") as string); | |
await updateName(formata.get("name") as string); | |
onUpdate(); |
void main(){ | |
int age = 17; | |
double prix = 19.99; | |
String nom = "Driss"; | |
bool estMajeur = true; | |
print("Bonjour, je m'appelle $nom et j'ai $age ans"); | |
if(estMajeur){ | |
print("Je suis majeur !"); | |
} else { |
if([10,100,101,145,3,112,113].includes(X) === true){} | |
if(typeof val !== 'undefined'){} |
text-2xl text-gray-100 flex flex-col gap-12 flex / flex-col / gap-12 ====== space-y-12
text-teal-700 text-opacity-50
{ | |
"name":"name of app", | |
"version": " 1.0.0", | |
"description": "some explicit description", | |
"main": "index.js", | |
"author": "Marko", | |
"private": true, | |
"devDependencies": { | |
"typescript": "^4.9.4" | |
} |
import Head from "next/head"; | |
import formImage from "../public/form.png"; | |
import Image from "next/image"; | |
import { useFormik } from "formik"; | |
import * as Yup from "yup"; | |
import { useRouter } from "next/router"; | |
import { motion as m } from "framer-motion"; | |
export default function Home() { | |
const router = useRouter(); |
// src/config/firebase.js | |
// Import the functions you need from the SDKs you need | |
import { initializeApp } from "firebase/app"; | |
import { getAnalytics } from "firebase/analytics"; | |
// TODO: Add SDKs for Firebase products that you want to use | |
// https://firebase.google.com/docs/web/setup#available-libraries | |
// Your web app's Firebase configuration |
# Remove commas & space | |
res = str.replace(/[, ]+/g, " ").trim(); |
let usersRouter = require('./routes/users'); | |
let app = express(); | |
app.use(logger('dev')); | |
app.use(express.json()); | |
app.use(express.urlencoded({ extended: false })); | |
app.use(cookieParser()); | |
app.use(express.static(path.join(__dirname, 'public'))); |