This short guide shows you how to implement basic UI.
Start with your HTML file. If it's a list of e.g. friends, use the syntax like the below:
<!DOCTYPE html>
<html>
<head>
/* | |
var - functional scope == function declaration curly braces | |
let/const - block scope == curly braxes | |
*/ | |
for (let i=0; i<something.length; i++) { | |
// i is only in here | |
} |
<!DOCTYPE html> | |
<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> | |
<style> |
<!DOCTYPE html> | |
<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> | |
<style> |
import React, { useState } from 'react' | |
import './Task.css'; | |
function Task(props) { | |
const [task, setTask] = useState(props.content) | |
const [taskComplete, setTaskComplete] = useState(true) | |
let taskCompleteClassName = 'Task-status' |
I hereby claim:
To claim this, I am signing this object:
<link rel="import" href="../code-mirror/code-mirror.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |