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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Front End Development / React</title> | |
</head> | |
<body> | |
<!-- We will put our React component inside this div. --> | |
<div id="root"></div> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>React getting started</title> | |
</head> | |
<body> | |
<!-- Root container for react components --> | |
<div id="root"></div> |
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
<!-- Fetch astronomy picture of the day from NASA API --> | |
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>React getting started</title> | |
</head> | |
<body> | |
<!-- Root container for react components --> | |
<div id='root'></div> |
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
<!-- Fetch astronomy picture of the day from NASA API --> | |
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>React getting started</title> | |
</head> | |
<body> | |
<!-- Root container for react components --> | |
<div id='root'></div> |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>React getting started</title> | |
</head> | |
<body> | |
<!-- Root container for react components --> | |
<div id='root'></div> | |
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 { useState } from 'react'; | |
function TodoList() { | |
const [desc, setDesc] = useState(''); | |
const [todos, setTodos] = useState([]); | |
const inputChanged = (event) => { | |
setDesc(event.target.value); | |
} |
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
mport java.io.IOException; | |
import javax.servlet.FilterChain; | |
import javax.servlet.ServletException; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import org.springframework.stereotype.Component; | |
import org.springframework.web.filter.OncePerRequestFilter; | |
@Component | |
public class CorsFilter extends OncePerRequestFilter { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>React + Spring</title> | |
</head> | |
<body> | |
<div class='container'> | |
<div id='root'></div> |
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 { useState } from 'react'; | |
import { StatusBar } from 'expo-status-bar'; | |
import { Alert, StyleSheet, Text, View, Button, TextInput, FlatList } from 'react-native'; | |
export default function App() { | |
const [keyword, setKeyword] = useState(''); | |
const [repositories, setRepositories] = useState([]); | |
const getRepositories = () => { | |
fetch(`https://api.github.com/search/repositories?q=${keyword}`) |
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 { useState, useEffect } from 'react'; | |
import { StyleSheet, Text, TextInput, View, Button, FlatList } from 'react-native'; | |
import * as SQLite from 'expo-sqlite'; | |
const db = SQLite.openDatabase('coursedb.db'); | |
export default function App() { | |
const [credit, setCredit] = useState(''); | |
const [title, setTitle] = useState(''); | |
const [courses, setCourses] = useState([]); |
OlderNewer