In React's terminology, there are five core types that are important to distinguish:
React Elements
| <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1270 775" > | |
| <style> | |
| .st0{fill: hsl(299, 54%, 29%);} | |
| .st1{fill: hsl(34, 89%, 53%); } | |
| .st2{fill: hsl(251, 100%, 88%);} | |
| .st3{fill: hsl(300, 42%, 89%);} | |
| .st4{fill: hsl(300, 100%, 99%);} | |
| .st5{fill: hsl(232, 73%, 78%);} | |
| .st6{fill:hsl(259, 40%, 39%);} |
| /* --- generate html from json --- | |
| * ~ A lot of things are taken for granted here. ~ | |
| * - ajax has content-type hardcoded as json | |
| * - div have bootstrap container class and schema section key as id | |
| * - inputs have bootstrap form-control class | |
| * - each content is a separate div container | |
| * Limited custom behavior can be made by writing in custom | |
| */ | |
| var custom = ()=>{ | |
| document.getElementById("product").className=""; |
In React's terminology, there are five core types that are important to distinguish:
React Elements
| import React, { Component } from 'react'; | |
| import { render } from 'react-dom'; | |
| import { createGlobalStyle } from 'styled-components'; | |
| import MediaQuery from 'react-responsive'; | |
| import WideScreenHero from './Slides/WideScreen/HeroSlide/Hero'; | |
| import WideScreenWork from './Slides/WideScreen/WorkSlide/Work'; | |
| import WideScreenSkills from './Slides/WideScreen/Skills'; | |
| import WideScreenContact from './Slides/WideScreen/ContactSlide/Contact'; | |
| import MobileHero from './Slides/Mobile/HeroSlide/Hero'; | |
| import MobileWork from './Slides/Mobile/WorkSlide/Work'; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Add React in One Minute</title> | |
| </head> | |
| <body> | |
| <h2>Add React in One Minute</h2> | |
| <p>This page demonstrates using React with no build tooling.</p> |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Add React in One Minute</title> | |
| </head> | |
| <body> | |
| <h2>Add React in One Minute</h2> | |
| <p>This page demonstrates using React with no build tooling.</p> |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge" /> | |
| <title>Document</title> | |
| </head> | |
| <body> | |
| ERWİN | |
| <div> |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| var head = document.head || document.getElementsByTagName('head')[0]; | |
| var body = document.body || document.getElementsByTagName('body')[0]; | |
| var style = document.createElement('link'); | |
| style.setAttribute('rel', 'stylesheet'); | |
| style.setAttribute('href', '//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/tomorrow.min.css'); | |
| var script = document.createElement('script'); | |
| script.setAttribute('src', '//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js'); | |
| head.append(style); | |
| head.append(script); |