- Which of the following best describes the prop-types package?
- A strongly typed JavaScript utility for compiling React components.
- A tool to validate prop values that are passed to components during development.
- A tool to validate prop values that are passed to components in production.
- How do you validate that a property value is something that can be rendered?
- If it has a toString() function, this is enough to render it.
- Use the PropTypes.node validator.
- Use the PropTypes.renderable validator.
- What is the purpose of the PropTypes.shape validator?
- To make sure that an object has certain properties with certain types, ignoring any additional properties.
- To make sure that an object passed as a prop is of a particular class.
- To make sure that an object has certain property names.
..................Content has been hidden....................
You can't read the all page of ebook, please click
here login for view all page.