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
{ | |
"user":{ | |
"id":8484, | |
"email":"hello@email.com", | |
"name":"User", | |
"birthday":"01/01/1998" | |
} | |
} |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Basic HTML 5 doument</title> | |
<link rel="Stylesheet" href="user.css" /> | |
<script> | |
onload=()=>{ | |
const show=document.getElementById("show"); |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Basic HTML 5 doument</title> | |
<style rel="stylesheet" type="text/css"> | |
body{ | |
min-height: 80vh; | |
display: grid; |
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 React from 'react'; | |
import {render} from "react-dom"; | |
import App from './App'; | |
function renderComp(props){ | |
render(<App {...props}/>, | |
document.getElementById('root') | |
); | |
} |
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 React from 'react'; | |
import {render} from "react-dom"; | |
import App from './App'; | |
function renderComp(props){ | |
render(<App {...props}/>, | |
document.getElementById('root') | |
); | |
} |
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 React,{Fragment} from"react"; | |
import PropTypes from "prop-types"; | |
export default function App({string,number,bool,func,array,object}){ | |
return(<Fragment> | |
<p>{string}</p> | |
<p>{number}</p> | |
<p>{bool?"true":"false"}</p> | |
<p>{func()}</p> | |
<ul> |
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
<script src="https://unpkg.com/react@17/umd/react.development.js" crossorigin></script> | |
<script src="https://unpkg.com/react-dom@17/umd/react-dom.development.js" crossorigin></script | |
<script type="text/javascript"> | |
<!---Write Your React Code Here In Other Words Build Your Components Here--> | |
</script> |
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
export junior; |
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
export default junior; |
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 Junior from './file.js'; | |
class Senior extends Junior{ | |
constructor(){ | |
super(); | |
this.year='4 years'; | |
this.fullTimeJob='yes'; | |
} | |
} | |
const junior=new Junior(); |
NewerOlder