Build a Web App with React.js

Ace your homework & exams now with Quizwiz!

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.


Related study sets

MAN Chapt 7, Chapt 3, Chapt 4, Test 2 Concept Cards, Ch. 7 Strategies for Competing in International Markets, Test 1 General Cards, Chapter 5. The Five Generic Competitive Strategies, Chapt 1, Test 1 General Cards (2), MAN Test 2 Concept Cards, Chapt...

View Set

Fall 21 Health & Illness Exam 1 Content

View Set

Geography 103 A TEST 2 (lecture content from 9/27)

View Set

Modules 1-3: Basic Network Connectivity and Communications

View Set

Lesson 6 Encryption Fundamentals

View Set

AP Physics Unit 2 Progress Check: MCQ Part B

View Set