or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
SPAs with web components, lit-html + redux
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →Marcus Weiner
github.com/mraerino
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →Moritz Gunz
github.com/NeoLegends
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →Leo Bernard
github.com/leolabs
Festify
Note:
Note:
Note:
🏄
Let's dive in!
Note:
📦
Componentization
Note:
React
Angular
VueJS
Note:
🎁
Web Components
Encapsulated elements defined as JS classes
Note:
Verkapselte Elemente in Form von JS Klassen
💻
Demo
🚉
Use the platform
Runs natively in the browser:
No library code needed 🎉
True style encapsulation
Web Standard is here to stay
Note:
🤔
Browser Support
Note:
✨
UI Views
Note:
Straightforward
Native
Fast
Note:
🔥
lit-html
Note:
📝
Template Literals
Note:
LIVE
Note:
innerHTML
⚡️
Rendering efficiently
Note:
innerHTML
Enter:
<template>
Note:
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →Note:
lit-html
Note:
<template>
aus statischen Teilen des LiteralsinnerHTML
)Note:
Note:
Note:
🗂
Nested Templates
🦄
Uniflow
Note:
Note:
🏃💨 💥
Benchmarks
Easy template syntax
No build tooling needed
Tiny (< 2kb)
Considerably fast
⚛️
Redux
Note:
Note:
✅
Three Principles
Single Source of Truth
Note:
Immutable State
Note:
Note:
Pure State Modification
Note:
Note:
Note:
Note:
Note:
⚙️
The Store
Note:
store.getState()
store.dispatch(action)
store.subscribe(listener)
🔁
From State to View and Back
Note:
Deriving Data
Note:
Task: Render a list of Todos (yaaaay! 🙌)
Note:
MapStateToProps Function
Note:
lit-html example
Note:
Passing Properties
Note:
Triggering Actions
Note:
Task: Render a single Todo-Item
Note:
MapDispatchToProps Function
Note:
Note:
lit-html example
⛓
Side Effects
Middlewares
Note:
Middlewares
Note:
Middlewares
Note:
Middlewares
Note:
Note:
🏁 Summing up
mapStateToProps
mapDispatchToProps
💪
fit-html
Note:
Note:
🔀
Mixin-based
Note:
Note:
That's it.
Ask us anything!
Follow along: