<h1>change your color preferences or edit the media query</h1>:root {
--prefer-dark: initial;
--light-surface: hsl(0 0% 90%);
--dark-surface: var(--prefer-dark) hsl(0 0% 10%);| /** | |
| * # Assigning properties to an object type in TypeScript | |
| * | |
| * When we want to assign some properties on a object type | |
| * we usually use the `&` operator: | |
| * | |
| * type B = A & { someProperty: string } | |
| * | |
| * It seems to work at first sight, but it doesn't behave exactly | |
| * as we would expect when we try to override properties that already |
| :root { | |
| --violation-color: red; /* used for clear issues */ | |
| --warning-color: orange; /* used for potential issues we should look into */ | |
| } | |
| /* IMAGES */ | |
| /* | |
| * Lazy-Loaded Images Check | |
| * ==== |
| .avatar { | |
| position: relative; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 100px; | |
| height: 100px; | |
| border-radius: 10%; |
| let hooks = []; | |
| let idx = 0; | |
| export function useState(initialState) { | |
| let state = hooks[idx] || initialState; | |
| let _idx = idx; | |
| function setState(newState) { | |
| hooks[_idx] = newState; | |
| render(); |
<h1>change your color preferences or edit the media query</h1>:root {
--prefer-dark: initial;
--light-surface: hsl(0 0% 90%);
--dark-surface: var(--prefer-dark) hsl(0 0% 10%);This is the base of all projects and it will include the foundation for all potential react-based projects in Reason.
This base package should include a ReasonReact api to promote collaboration and familiarity with people using a ReasonReact, and for the modern world of React this should also include a Hooks api that currently revery uses.
All blocks in Jsx are of type React.reactElement. This reactElement should represent:
| // Basic example of useState. | |
| import React, { useState } from 'react'; | |
| export default function Greeting(props) { | |
| const [name, setName] = useState('Mary'); | |
| function handleNameChange(e) { | |
| setName(e.target.value); | |
| } |
This document is written for both the machine learning community and the Swift programming language design community, with a strong focus on language design.
| {"lastUpload":"2019-07-18T12:33:09.847Z","extensionVersion":"v3.4.0"} |