await prisma.user.update({where: { AND: [ { id: req.params.id }, { deleted: false }, ],},//...})
npm run build
selectedRate
onClick
const ratings = [1, 2, 3, 4, 5];export default function Ratings() { const [selectedRate, setSelectedRate] = createSignal(0); return ( <form action="thank-you.html"> <ul class="rating-numbers flex"> <For each={ratings}> {(rate) => <li onClick={() => setSelectedRate(selectedRate() = rate)}>{rate}</li>} </For> </ul> </form>// ...
import { For } from "solid-js";const ratings = [1, 2, 3, 4, 5];export default function Ratings() { return ( <form action="thank-you.html"> <For each={ratings}> {(rate) => { <div> <input type="radio" name="rating" id={rate} /> <label for={rate}>{rate}</label> </div>; }} </For> </form> );}