Skip to content

Instantly share code, notes, and snippets.

View Oskku's full-sized avatar

Osku Oskku

View GitHub Profile

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@Oskku
Oskku / app.jsx
Created January 13, 2022 17:54
WeatherApp
import React, { useState, useEffect } from "react";
import axios from "axios";
import Hello from "./components/Hello";
function App() {
// We create state named countries
const [countries, setCountries] = useState([]);
const [input, SetInput] = useState("");
const [selectedCountry, setSelectedCountry] = useState(null);
const [weather, setWeather] = useState([]);