~/talk

[Eng Sub]Printing Receipts with React: How to Create POS with JavaScript by Seokju

Talkat JSConf Korea 2022 · 2022-09-16..09-17· [javascript, web-platform]
slides:none on file

Shows how a working POS prints receipts from JavaScript: connects over serial (or Node serialport), sets baudRate (115200 example), encodes text to Uint8Array and issues ESC/POS commands to feed, cut, print barcodes and use EUC-KR for Korean. Implements a custom React renderer so JSX -> Uint8Array and also renders a DOM preview, and publishes the result as react-thermal-printer, using the Web Serial API and raw ESC/POS command sequences.

AI-written summary · about

  1. 0:00Printing receipts with React
  2. 1:38POS system overview
  3. 3:29Thermal printers and ports
  4. 6:49Serial ports in JavaScript
  5. 11:10Thermal printer commands
  6. 13:23Korean text printing
  7. 14:49Printer class for commands
  8. 15:58Receipts as declarative UI
  9. 17:04React for receipt printing
  10. 18:16Custom React renderers
  11. 20:12Print function for React
  12. 20:59Receipt preview in browser
  13. 21:21react-thermal-printer
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.