"A run time environment"
Node allows us to run javascript on OS instead of browser We need a server to create a website or webapp
###Server A program running on a computer somewhere that can communicate with clients
##Modules
import 'package:gql_exec/gql_exec.dart'; | |
import "package:async/async.dart"; | |
import 'package:gql/ast.dart'; | |
import 'package:gql_dio_link/gql_dio_link.dart'; | |
import 'package:gql_exec/gql_exec.dart' as gql_exec; | |
import 'package:gql_dio_link/gql_dio_link.dart'; | |
/// A handler of Link Exceptions. |
function App() { | |
const [text, setText] = useState("Fun"); | |
const fancyRef = useRef(); | |
const submitButton = () => { | |
setText(fancyRef.current.value); | |
}; | |
return ( | |
<div id="App"> |
function FancyTextSubmit() { | |
const inputRef = useRef(null); | |
const onButtonClick = () => { | |
// `current` points to the mounted text input element | |
inputRef.current.focus(); | |
}; | |
return ( | |
<div> | |
<input ref={inputRef} type="text" /> | |
<button onClick={onButtonClick}>Focus the input</button> |
const FancyTextSubmit = forwardRef(({ onClick }, ref) => ( | |
<div> | |
<input ref={ref} type="text" /> | |
<button onClick={onClick}>Submit</button> | |
</div> | |
)); |
function App() { | |
const [text, setText] = useState("Fun"); | |
const fancyTextRef = useRef(); | |
const submitButton = () => { | |
setText(fancyTextRef.current.value); | |
}; | |
return ( | |
<div id="App"> |
const FancyTextSubmit = () => ( | |
<div> | |
<input type="text"/> | |
<button onClick={onClick}>Submit</button> | |
</div> | |
); |
{"lastUpload":"2021-02-25T00:12:27.745Z","extensionVersion":"v3.4.3"} |
##IV: Abstract Data Types & Data Structures: Storing data on memory{ Array Inserting elements in arrays are "expensive" Arrays have fixed sizes (need to find contiguous open space)
Linked list Every element also needs to store a reference to the next item in the list
ADTs vs DTs