missing in props validation

Berkay Ozercan 0 Reputation points
2025-01-07T17:06:15.15+00:00
function PizzaList({ name, data, onCreate, onUpdate, onDelete, error })

I have a missing in props validation error in this block

This question is related to the following Learning Module

Community Center | Not monitored
{count} votes

1 answer

Sort by: Most helpful
  1. Pradeep M 9,765 Reputation points Microsoft External Staff Volunteer Moderator
    2025-01-08T06:32:37.84+00:00

    Hi Berkay Ozercan,

    The "missing in props validation" message is a warning from tools like ESLint, indicating that the PizzaList component's props (e.g., name, data, onCreate) aren't explicitly validated. While this doesn't cause issues in your current app, it's a best practice to validate props using tools like PropTypes to ensure code reliability. If you'd like to address it, you can add PropTypes validation to define the expected types for each prop. We tried everything from our end, and it works fine without issues. For now, you can safely ignore the warning, 

    Screenshot attached for your reference: User's image Please feel free to contact us if you have any additional questions.     

    If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community.  

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.