I am encountering an issue with my array.map() function and I'm struggling to identify the problem
const Websiteviewer = ({ web, content, styles, design }) => {
const test = ['1' , '2']
return (
{test.map(item => {
console.log(item);
} )}
)
}
export default Websiteviewer
This is a react component where I'm facing the following error ->
[{ "resource": "/c:/path/WebsiteViewer.js", "owner": "typescript", "code": "1005", "severity": 8, "message": "',' expected.", "source": "ts", "startLineNumber": 18, "startColumn": 12, "endLineNumber": 18, "endColumn": 13 }]
If you have any suggestions on how to resolve this issue, thank you in advance.