When do you capitalize propTypes to PropTypes? What’s the rule there?

When I was completing this exercise, I initially used a lower case ‘propTypes’ and it would not run pass until it was capitalized.


import React from 'react';

export class GuineaPigs extends React.Component {
  render() {
    let src = this.props.src;
    return (
        <h1>Cute Guinea Pigs</h1>
        <img src={src} />

GuineaPigs.propTypes = {
  src: React.PropTypes.string.isRequired

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.