We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- React
- Data Handling
- Blog Post
- Discussions
Blog Post
Blog Post
Sort by
recency
|
17 Discussions
|
Please Login in order to post a comment
function PostDisplay({ blog,setBlog }) {
const deleteBlog = (indexToDelete) => { setBlog(blog.filter((_,index) => index !== indexToDelete)) } return ( {blog.map((item, index) => (
{item.title}
{item.desc}
deleteBlog(index)}>Delete ))} ); }export default PostDisplay;
Going through the problem, I meet every requirement. The test only shows me meeting 2 of 6 reqs (empty inputs at start, clear inputs after submission). Any suggestions on how to figure out why the test isn't approving me?
The instructions for these should really encourage also reading the App.test.js to know what the tests are expecting
The instructions for these should really encourage also reading the App.test.js to know what the tests are expecting
I solved the problem, submitted code, and it passed and asked me to share it with friends. But when I went back to React problems it said "try again" instead of solved, and all my code is gone. When I look at submissions it shows You made this submission 4 minutes ago. Score:60.00Status:Accepted.
Why do all the other React problems I've solved say "Solved" but this one says "Try again"?