Skip to content

PropTypes

EpicReact PropTypes confusion

I got a bit confused when I got to creating custom components extra credit where I'm not sure how React is calling the propTypes that we defined (not from the library).

I broke it down in this StackOverflow question where I even tried looking at the React source code but I didn't explain my question clearly enough because the one response gave a link to the propTypes.

  • (which is interesting but not exactly what I'm looking for 😅)

I'm also posted on KCD's discord (but didn't get a good answer)

I could (but probably won't) go to his office hours


Last update: 2023-04-24