Created
April 16, 2020 02:02
-
-
Save qhwa/3ff6e17f117b30961a41a084d693c886 to your computer and use it in GitHub Desktop.
A script displaying East Asian characters and Emoji
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule RenderingDemo do | |
| @behaviour Ratatouille.App | |
| import Ratatouille.View | |
| def init(_context) do | |
| "Hello world! 你好世界! <<🦸🏻♀️🧖♀️>>" | |
| end | |
| def update(model, _message), do: model | |
| def render(model) do | |
| view do | |
| label(content: model, wrap: true) | |
| end | |
| end | |
| end | |
| Ratatouille.run(RenderingDemo) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment