Skip to content

Commit

Permalink
Add PyPI badge
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasr8 committed Jan 26, 2025
1 parent 2120ac4 commit b22415a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
</p>

# PyJSX - Write JSX directly in Python
![PyPI - Version](https://img.shields.io/pypi/v/python-jsx)

```python
# coding: jsx
from pyjsx import jsx, JSX

def Header(children, style=None, **rest) -> JSX:
def Header(style, children) -> JSX:
return <h1 style={style}>{children}</h1>

def Main(children, **rest) -> JSX:
def Main(children) -> JSX:
return <main>{children}</main>

def App() -> JSX:
Expand Down

0 comments on commit b22415a

Please sign in to comment.