Skip to content

Tag: reactjs

How do i use chartjs in react project properly?

Im trying to use chartjs in my react project but it doesnt work. What am i doing wrong? You can see console logs here: logs Answer The attributes you’re passing to Bar are incorrect. Specifically, your data attribute is missing its own datasets attribute, as can be seen in the error log when Chart.js is…

ReactJs – Ant design Tabs Card does not render content

My components used ReactJs Framework that built with Ant Design UI. My stucking is the rendering on tabs content. I try to nest the LoginForm component to TabsCard component. Note: the LoginForm component can successful independently rendered without nesting case. Component rendered on image I attachted: Here…

how to spy on window.location functions?

i need to cover my code with some unit tests and in one of then i have the following situation. app.tsx and in my test file i’m getting the followein error : Cannot assign to read only property ‘replace’ of object ‘[object Location]’ i’ve tried other aproachs like }); but i…