Skip to content

Commit

Permalink
Update callbacks.md with minor textual and punctuation improvements. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Coderambling authored Mar 5, 2025
1 parent 5d3ab46 commit fa8ed2c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions doc/how_to/custom_components/esm/callbacks.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ class Slideshow(JSComponent):
Slideshow(width=500, height=200).servable()
```

This approach lets you quickly build custom components with complex interactivity. However if you do not need any complex computations in Python you can also construct a pure JS equivalent:
This approach lets you quickly build custom components with complex interactivity.

However, if you do not need any complex computations in Python you can also construct a pure JS equivalent:

## Slideshow with Javascript Callback

Expand Down Expand Up @@ -69,4 +71,4 @@ class JSSlideshow(JSComponent):
JSSlideshow(width=800, height=300).servable()
```

By using Javascript callbacks instead of Python callbacks you can achieve higher performance, components that can be *js linked* and components that will also work when your app is saved to static html.
By using Javascript callbacks instead of Python callbacks you can achieve higher performance components, that can be *js linked* and components that will also work when your app is saved to static html.

0 comments on commit fa8ed2c

Please sign in to comment.