How to use the shapeImmutable function from prop-types

Find comprehensive JavaScript prop-types.shapeImmutable code examples handpicked from public code repositorys.

179
180
181
182
183
184
185
186
187
188
    </div>
  );
};

User.propTypes = {
  user: PropTypes.shapeImmutable({
    isLoading: PropTypes.bool.isRequired,
    data: PropTypes.shape({
      name: PropTypes.string.isRequired,
      age: PropTypes.number,
fork icon388
star icon0
watch icon3

+ 3 other calls in file