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, {Component} from 'react'; | |
| import Header from './Header'; | |
| export default class Home extends Component{ | |
| constructor(){ | |
| super(); | |
| this.state={ | |
| message: 'Welcome', | |
| age: 42, |
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, {Component} from 'react'; | |
| import Header from './Header'; | |
| import '../style/Kids.css'; | |
| export default class Kids extends Component{ | |
| // /kids/ | |
| // /kids/:kid | |
| kidRoute = (ev) =>{ |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Document Fragments</title> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <main> | |
| <ul id="my-list"> |
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, {Component} from 'react'; | |
| import Message from './Message'; | |
| import '../styles/MessageList.css'; | |
| export default class MessageList extends Component{ | |
| constructor(){ | |
| super(); | |
| this.state = { | |
| messages: [ |
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, {Component} from 'react'; | |
| import '../styles/Message.css'; | |
| export default class Message extends Component{ | |
| constructor(props){ | |
| super(props); | |
| this.state = { | |
| id: props.msg.id, | |
| title: props.msg.title, |
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, { Component } from 'react'; | |
| import logo from './logo.svg'; | |
| import './App.css'; | |
| import Story from './Story'; | |
| import NavMenu from './NavMenu'; | |
| class App extends Component { | |
| render() { | |
| return ( | |
| <div className="App"> |
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
| [{ | |
| "id":123, | |
| "title":"Bell", | |
| "desc":"Lorem ipsum dolor sit amet, consectetur adipisicing elit.", | |
| "img":"bell-lg.png", | |
| "price":12.34 | |
| },{ | |
| "id":456, | |
| "title":"Bullhorn", | |
| "desc":"Quisquam, veritatis, officia. Veritatis, saepe!", |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Shopping Cart</title> | |
| <meta name="viewport" content="width=device-width"> | |
| <style> | |
| *{ | |
| padding: 0; | |
| margin: 0; |