1import * as React from "react";
2import { HelloComponent } from "./hello";
3import { NameEditComponent } from "./nameEdit";
5export const App = () => {
6 const [name, setName] = React.useState("defaultUserName");
7 const [editingName, setEditingName] = React.useState("defaultUserName");
9 const loadUsername = () => {
11 setName("name from async call");
12 setEditingName("name from async call");
16 React.useEffect(() => {
20 const setUsernameState = () => {
26 <HelloComponent userName={name} />
28 initialUserName={name}
29 editingName={editingName}
30 onNameUpdated={setUsernameState}
31 onEditingNameUpdated={setEditingName}
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list