React.JS
A Beginner Centric Intro
Pearl McPhee
A What, 3 Why’s and 2 How’s
WHAT
REACT IS
“A JAVASCRIPT
LIBRARY FOR BUILDING
USER INTERFACES”
- Facebook
WHY
● Popular
● Cutting Edge
● Easy to Adopt
Why Should You Learn React?
HOW (high level)
Components
Building blocks of code that are ideally each
responsible for doing one thing. Together they
make up the user interface of a React app.
User Interface
Bookmark
Yani is ready for the office! :))
#ootd
Components
Yani is ready for the office! :))
#ootd
Bookmark
Component Name Responsibility UI
BookmarkButton Render a blue button that
says “Bookmark”.
FramedPhoto Render an image styled
with a thin border
PhotoCaption Render a purple block that
contains the text caption
Card Render a green block that
contains the
BookmarkButton,
FramedPhoto and
PhotoCaption Components
Bookmark
Text for a photo
caption
Text for a photo
caption
Component Name What Data Does It Need? UI
BookmarkButton Whether button was clicked
or not
FramedPhoto Image source
PhotoCaption Caption text
Card None
Bookmark
Text for a photo
caption
Text for a photo
caption
Functional Components Class Syntax
HOW (nitty gritty)
Additional Resources
● React Docs
● Egghead.io (videos)
● Additional Practice Code
● Extra references found throughout this doc
in the note sections
● pearlmcphee@gmail.com
Thank You!

React.js workshop