reactive-python / reactpy

It's React, but in Python
https://reactpy.dev
MIT License
7.89k stars 317 forks source link

Skip rendering None in all situations #1171

Closed rmorshea closed 11 months ago

rmorshea commented 11 months ago

By submitting this pull request you agree that all contributions to this project are made under the MIT license.

Issues

Currently the value None will render as the string "None" when used as a child in VDOM elements. However, when returned by a component it will not render. This inconsistency is confusing for users.

fix #1025

Solution

We should skip rendering None in all cases.

Checklist