| Models | Examples |
|---|---|
| Display ads | Yahoo! |
| Search ads |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ Quicksort implementation """ | |
| def quicksort(arr): | |
| """ Quicksort a list | |
| :type arr: list | |
| :param arr: List to sort | |
| :returns: list -- Sorted list | |
| """ |
A top-level App component returns <Button /> from its render() method.
-
What is the relationship between
<Button />andthisin thatButton’srender()? -
Does rendering
<Button><Icon /></Button>guarantee that anIconmounts? -
Can the
Appchange anything in theButtonoutput? What and how?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| export class StateDispatcher extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = props.state || {}; | |
| this._dispatch = this.dispatch.bind(this); | |
| } | |
| dispatch(action) { |