Don't try to be (too) innovative. Think in terms of HTML elements like <div>
, <p>
, <span>
, <option>
, <input>
, <button>
, etc. React calls these "native components" -- treat em that way!
⁃ no knowledge outside of itself other than its props. or appstore... but that's it!
⁃ React components represent UI at any POINT-IN-TIME through merely utilizing props and state
⁃ use propTypes brah (and optional: getDefaultProps)
⁃ always be explicit when passing props. none of the crap with spread operators