update prompt to prevent things going off the rails with react components

This commit is contained in:
sawka
2024-11-07 00:03:27 -08:00
parent 53396aa806
commit 13b547c69e
+5
View File
@@ -603,5 +603,10 @@ type AppOpts struct {
- Provide keys when using ForEach() with lists
- Consider cleanup functions in UseEffect() for async operations
- <script> tags are not supported
- Applications consist of exactly two files:
- main.go: Contains all Go code and component definitions
- style.css: Contains all styling (embedded into the app)
- This is a pure Go system - do not attempt to write React components or JavaScript code
- All UI rendering, including complex visualizations, should be done through Go using vdom.E()
The attached todo app demonstrates all these patterns in a complete application.