I can’t render array of objects from slaves.json file. It shows me ‘Uncaught TypeError: Cannot read properties of null (reading ‘Column1′)’
How can i render this?
Help.please
App.js
import './App.css';
import slaves from './slaves.json';
console.log('slaves', slaves);
const arr = slaves.map((obj) => obj.Column1);
function App() {
return (
<div className="App">
<div>
{arr.filter((obj) => {
return <div>{obj}</div>;
})}
</div>
</div>
);
}
export default App;