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 from 'react'; | |
| import './App.css'; | |
| import { BrowserRouter as Router, Route } from 'react-router-dom'; | |
| const Home = () => <h1>Home</h1>; | |
| const Admin = () => <h1>Admin</h1>; | |
| const App = () => ( | |
| <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
| import React from 'react'; | |
| import './App.css'; | |
| const Home = () => <h1>Home</h1>; | |
| const App = () => ( | |
| <div className="App"> | |
| <header className="App-header"> | |
| </header> | |
| <p className="App-intro"> |
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 from 'react'; | |
| import './App.css'; | |
| import { BrowserRouter as Router, Route } from 'react-router-dom'; | |
| const Home = () => <h1>Home</h1>; | |
| const App = () => ( | |
| <div className="App"> | |
| <header className="App-header"> |
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
| npm install react-router-dom |
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
| create-react-app codingblast |
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
| let a = 5; | |
| let b = 3; | |
| const obj = { a: a, b: b }; | |
| const shorthand = { a , b }; |
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
| var result = (lowest, highest); | |
| (int lowest, int highest) anotherTuple = (lowest, highest); |
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
| using System.Collections.Generic; | |
| using System.Linq; | |
| namespace CSharp71Features | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| var numbers = new List<int> { 33, 15, 14 }; |
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
| using System.Collections.Generic; | |
| using System.Linq; | |
| namespace CSharp71Features | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| var numbers = new List<int> { 33, 15, 14 }; |
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
| using System; | |
| namespace CSharp71Features | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| DoSomething(); | |
| } |