Skip to content

Tag: reactjs

How to delete a todo item in ReactJs?

Here is my code in which i am trying to delete an item from the list but unfortunately it doesnt deleting according to the index it just deleting in a FIFO order. this is a delete function which is taking the index of the item but it is not working correctly. Answer Issue The delTodo takes an index, but you

Rendering random elements from an array in React

I am making a small react app with the help of Potter-API through which users can search for specific characters or spells. After fetching data from the API I am rendering 6 random items(characters/spells) which when clicked lead to a detailed view of the item(characters/spells), I’ve also added a butto…