79402733

Date: 2025-01-31 12:30:27
Score: 0.5
Natty:
Report link

To render a custom year, you can use the renderYearContent prop as shown here https://reactdatepicker.com/#example-custom-year

renderYearContent={(year) => (
    <div>
      {`${year.toString().slice(-2)}-${(year + 1).toString().slice(-2)}`}
    </div>
  )}
Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Adam P.