Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Fix the hello-world example code #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Commits on Oct 12, 2021

  1. Fix the hello-world example code

    Running the initial example on the demo page gives a `Children must be a list of VDOM objects or strings` which is not a great first experience with the project ;)
    
    Python lists of VDOM objects are neither VDOM objects nor strings so they trigger the error. If we splice the results of the `fancy` call into the `h1` arguments list (so each list element becomes a separate argument to `h1`) then the code works correctly.
    jpc authored Oct 12, 2021
    Configuration menu
    Copy the full SHA
    4e05a44 View commit details
    Browse the repository at this point in the history