79291026

Date: 2024-12-18 12:12:15
Score: 0.5
Natty:
Report link

You can't use dot notation with template strings to access properties in a JavaScript object. Instead, you should use bracket notation like info[name] to dynamically retrieve nested values.

Here's is an updated version of your code:

<p className="text-sky-400">{info[name]?.title}</p>

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ayantunji Timilehin