Skip to content

Releases: freeCodeCamp/ui

v3.0.0

18 Oct 18:55
1a27bd5
Compare
Choose a tag to compare

What's Changed

Breaking Changes

  • useQuiz now requires a passingGrade prop
  • The value of correctAnswerCount returned from useQuiz can be undefined instead of always being a number. The undefined value indicates that the quiz has not been validated (the validateAnswer function hasn't been called)
  • QuizQuestion no longer accepts a validation prop. The prop is now folded into the QuizQuestion's answers prop.
    • Old:
      <QuizQuestion
        question="Lorem ipsum"
        answers={[
          { label: "Option 1", value: 1 },
          { label: "Option 2", value: 2 },
        ]}
        selectedAnswer={1}
        validation={{ state: "correct", message: "Correct!" }}
      />
    • New:
      <QuizQuestion
        question="Lorem ipsum"
        answers={[
          { 
      	  label: "Option 1",
      	  value: 1,
      	  validation: { state: "correct", message: "Correct!" }
      	},
          { label: "Option 2", value: 2 },
        ]}
        selectedAnswer={1}
      />

Full Changelog: v2.3.1...v3.0.0

v2.3.1

11 Oct 17:24
1e3d18c
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.3.0...v2.3.1

v2.3.0

10 Oct 18:35
2a18d5b
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.2.0...v2.3.0

v2.2.0

08 Oct 19:10
096a646
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.1.0...v2.2.0

v2.1.0

27 Sep 16:25
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.0.0...v2.1.0

v2.0.0

25 Sep 08:24
8a9be94
Compare
Choose a tag to compare

What's Changed

Breaking Changes

The return type of useQuiz has changed.

  • Old: an array of questions
  • New: an object containing questions, validateAnswers, and correctAnswerCount properties

Full Changelog: v1.2.0...v2.0.0

v1.2.0

17 Sep 22:03
60a8731
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.1.0...v1.2.0

1.1.0

14 Aug 19:16
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.0.3...1.1.0

v1.0.3

18 Jun 15:50
b383a98
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.0.2...v1.0.3

v1.0.2

24 May 15:06
12efc83
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.0...v1.0.2