Build a Web App with React.js
Normally if you click on an <a> tag, what happens with the browser?
It performs a GET/ request.
What does localLinks do?
It takes an onClick event and figures out if it's an internal link.
What's one thing to love about ES6?
being able to define default parameters in a function
What does export default tell you?
export the singleton module
What's a better alternative to webpack?
hjs-webpack
What is the webpack server doing?
it has a node-socket server that's listening to file changes, and triggers refresh on the browser.
What's a UI component to put at the root of the directory?
layout component
What do we have to do to get clients-side routing?
matching URLs to JS components/handlers.
Why use React over Angular?
not cool deciding or writing logic with the html. awkward collision.
What are the caveats with JSX HTML?
only one parent div. class = className. certain props.
How are most apps used?
reused code. share basic structure.
What's the problem with Webpack?
so much setup
What's one of the benefits that comes built in to React Router?
the link tag
What's a benefit of ReduxRouter?
this.pushState to handle navigation
Why do you want to build your own linking system?
to prevent external links from breaking and determining whether a click was internal or external.
What is a module bundler, the build tool that Facebook uses?
webpack
Why would you want to send JS functions to the browser instead of templates?
with typical view layers, you create a mess of things. no way to create sub-views. react is modular.