You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
“a set of functions and procedures allowing the creation of applications that access the features or data of an operating system, application, or other service.”
“An API is a software intermediary that allows two applications to talk to each other. In other words, an API is the messenger that delivers your request to the provider that you're requesting it from and then delivers the response back to you.”
React
Frontend
JS library for building UIs, based around reusable “components”
Virtual DOM: shadow copy of the real DOM, React’s playground to update and optimize update, so we do as little work as possible when we go to the real DOM
Components:
Building blocks of a React app
2 types: Class (stateful) & functional/dumb (stateless)
Favor functional: simpler, no unnecessary overhead
Accepts properties (props)
Props:
“Creation parameters” passed from parent to child components
In different components:
Class: accessed via this.props
Functional: accessed via props parameter
How to pass:
<Component name=’jess’ age=5 color=’red’ favoriteBunny=’eeyore’ />
‘Component’ gets props: