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 { Router } from 'react-router'; | |
| import { Match } from "./matchchildren" | |
| const App = () => ( | |
| <Router> | |
| <Match pattern="/"><Hello name="Yoyoma"/></Match> | |
| </Router> | |
| ) | |
| const Hello = (props) => { |
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 * as React from "react"; | |
| import { nextTick } from "../std/nexttick"; | |
| import { updated } from "../std/fridge"; | |
| import { shallowObjectEquals } from "../std/u"; | |
| const uniqueObject = {}; | |
| export class StatefulComponent<T, U> extends React.Component<T> { | |
| protected readonly data: U; | |
| private allowRender: boolean = true; |
OlderNewer