First, an exercise. Can we represent all of css with plain data? Let's try.
let redText = { color: 'red' };
This is how I make pebre, but here is another variant: https://www.youtube.com/watch?v=YP0TqSGeUiQ
Inspiration härifrån, men jag gör lite annorlunda: https://www.youtube.com/watch?v=Ftw7RiaVH4U
module Main exposing (..) | |
import Html exposing (Html, div, button, text) | |
import Html.App | |
import Html.Events exposing (onClick) | |
main : Program Never | |
main = | |
Html.App.beginnerProgram |
atom-text-editor { | |
font-family: 'Fira Code'; | |
font-style: normal; | |
text-rendering: optimizeLegibility; | |
} | |
atom-text-editor::shadow { | |
.string.quoted, | |
.string.regexp { | |
-webkit-font-feature-settings: "liga" off, "calt" off; | |
} |
import React from 'react'; | |
/** | |
* Counter.js | |
* | |
* exposes: | |
* init | |
* update | |
* view | |
*/ |
I've taken the benchmarks from Matthew Rothenberg's phoenix-showdown, updated Phoenix to 0.13.1 and ran the tests on the most powerful machines available at Rackspace.
Framework | Throughput (req/s) | Latency (ms) | Consistency (σ ms) |
---|
/** | |
* Basic proof of concept. | |
* - Hot reloadable | |
* - Stateless stores | |
* - Stores and action creators interoperable with Redux. | |
*/ | |
import React, { Component } from 'react'; | |
export default function dispatch(store, atom, action) { |