Is it possible to use map array data (${adv_event.title}
) inside a react-structured-data
JSX?
I tried adding backticks with no success: name: `${adv_event.title}`,
Attempt 1:
<Generic jsonldtype=event schema={{
name: ${adv_event.title},
description: ,
startDate: YYYY-MM-DDT:HH:MM,
endDate: YYYY-MM-DDT:HH:MM,
image: ,
}}>
Error:
296:31 warning Unexpected template string expression
no-template-curly-in-string