Skip to content

Instantly share code, notes, and snippets.

@devmobasa
devmobasa / App.jsx
Last active January 11, 2018 20:09
Using React Router v4 with create-react-app - https://codingblast.com/react-router-create-react-app/
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">
@devmobasa
devmobasa / App.jsx
Last active January 11, 2018 20:10
Using React Router v4 with create-react-app - https://codingblast.com/react-router-create-react-app/
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">
@devmobasa
devmobasa / App.jsx
Last active January 11, 2018 20:10
Using React Router v4 with create-react-app - https://codingblast.com/react-router-create-react-app/
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">
npm install react-router-dom
create-react-app codingblast
let a = 5;
let b = 3;
const obj = { a: a, b: b };
const shorthand = { a , b };
var result = (lowest, highest);
(int lowest, int highest) anotherTuple = (lowest, highest);
using System.Collections.Generic;
using System.Linq;
namespace CSharp71Features
{
class Program
{
static void Main(string[] args)
{
var numbers = new List<int> { 33, 15, 14 };
using System.Collections.Generic;
using System.Linq;
namespace CSharp71Features
{
class Program
{
static void Main(string[] args)
{
var numbers = new List<int> { 33, 15, 14 };
using System;
namespace CSharp71Features
{
class Program
{
static void Main(string[] args)
{
DoSomething();
}