In React Functional component why bracket notation of object is not working [closed]

at titlename.name is working but titlename[name]is not working (https://i.sstatic.net/4aVjMhXL.png)orking properly

during my learning journey of react while experimenting on functional component the parameter of functional component is a object to access the object key on using dot notation it is working properly but in square bracket notation it is not working why..?
I am expecting reason for the question