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
openapi: 3.1.0 | |
info: | |
title: Recruitment Form | |
description: |- | |
Let's create a restful API for the previous ReactJS Project | |
Some useful links: | |
- [Base repo](https://github.com/swagger-api/swagger-petstore) | |
version: 0.0.1 | |
servers: |
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
[ | |
{ | |
"title": "100", | |
"symbol": "💯", | |
"keywords": | |
"hundred points symbol symbol wow wow win win perfect perfect parties parties" | |
}, | |
{ | |
"title": "1234", | |
"symbol": "🔢", |
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
[ | |
{ | |
"title": "Work", | |
"timeframes": { | |
"daily": { | |
"current": 5, | |
"previous": 7 | |
}, | |
"weekly": { | |
"current": 32, |
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 './App.css' | |
import { useForm } from 'react-hook-form' | |
import axios from 'axios' | |
import { useEffect, useState } from 'react' | |
function App () { | |
const { register, handleSubmit } = useForm() | |
const [postData, setPostData] = useState(null) | |
useEffect(() => { |
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
{ | |
"id": "60a7e470ec97c8ab71694248", | |
"task": "Acabar este Entregable", | |
"student": "Jovan", | |
"isCompleted": false, | |
"version": 0 | |
} |
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
const fib = (pos, memos) => { | |
if (pos === 0) { | |
return 0 | |
} | |
if (pos === 1) { | |
return 1 | |
} | |
if (memos[pos] !== undefined) { |
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 { useForm } from "react-hook-form"; | |
const Login = () => { | |
const { register, handleSubmit } = useForm(); | |
const onSubmit = (data) => { | |
console.log(data); | |
}; | |
return ( |
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 { useEffect, useState } from "react"; | |
import "./App.css"; | |
const Search = ({ handleSearchTerm }) => { | |
const [searchTerm, setSearchTerm] = useState(""); | |
return ( | |
<div> | |
<input | |
onChange={(e) => { | |
const value = e.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
import "./App.css"; | |
import React, { useState, useEffect } from "react"; | |
const getQuotesFromGit = () => { | |
const res = fetch( | |
"https://gist.githubusercontent.com/carmandomx/3d7ac5f15af87a587e1d25f5ba96de61/raw/e2d848b87c730a580077de221666343c15b1a243/gistfile1.txt", | |
{ mode: "cors" } | |
); | |
return res.then((value) => value.json()); | |
}; |
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 "./App.css"; | |
import React, { useState } from "react"; | |
function App() { | |
const [color, setColor] = useState("#e97878"); | |
const [user, setUser] = useState(""); | |
const [passwd, setPasswd] = useState(""); | |
const [isSubmitted, setIsSubmitted] = useState(false); |
NewerOlder