Wpis z mikrobloga

Właśnie naprawiłem CSS, myśląc jedynie logicznie, ja nie umiem CSS, ja tylko w backend pracuje, ale jeżeli jeden div ma 3 niepotrzebne border div to się robi "div > div > div" no i działa idealnie :D

Aż taki CSS nie jest straszny, wystarczy logicznie pomyśleć :D

...,,,.,.,.,.,.,.,Nienawidzę CSS

#programowanie
  • 12
  • Odpowiedz
  • 0
@Dzieci_z_Choroszczy: wiem to alpha, już mam betę :P
Ale mały bug jest,

const [currentQuestionIndex, setCurrentQuestionIndex] = useState(0);
const [answers, setAnswers] = useState(Array(questions.length).fill(''));
const [showResults, setShowResults] = useState(false);

const handleOptionChange = (option) => {
const updatedAnswers = [...answers];
updatedAnswers[currentQuestionIndex] = option;
setAnswers(updatedAnswers);

// Move to next question or show results
const nextQuestionIndex = currentQuestionIndex + 1;
if (nextQuestionIndex < questions.length) {
setCurrentQuestionIndex(nextQuestionIndex);
} else {
setShowResults(true); // Set showResults to true to
  • Odpowiedz