- GitHub: Personal
- Portfolio
- Email: douglas.wrightiii@gmail.com
- Phone: 603-988-3460
This file contains 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 Child from './Child'; | |
import React, { Component } from 'react'; | |
import './App.css'; | |
class App extends Component { | |
constructor(props){ | |
super(props); | |
this.state={ | |
trueOrfalse: true, | |
}; |
This file contains 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 Cards from './Components/Cards'; | |
import Forms from './Components/Forms'; | |
import React, { Component } from 'react'; | |
import recipes from './recipes.js'; // mock data | |
import './App.css'; | |
class App extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { |
This file contains 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
// There's some better solutions in the comments, so scroll down and see how other folks have improved this! | |
// USAGE: | |
// abbrState('ny', 'name'); | |
// --> 'New York' | |
// abbrState('New York', 'abbr'); | |
// --> 'NY' | |
function abbrState(input, to){ | |
What Happens When Your Browser Requests a Web Page?
-
Highest level = Client sends request to server > Server sends page/data to client
-
Slightly more nuance:
- Client sends HTTP request
- ISP via TCP/IP
- DNS (change name to ip)
- server receives request
- authentication / route matching ensues