Skip to content

Use @jsx.component and JSX.array#13

Draft
cknitt wants to merge 3 commits intobrnrdog:mainfrom
cknitt:jsx-component
Draft

Use @jsx.component and JSX.array#13
cknitt wants to merge 3 commits intobrnrdog:mainfrom
cknitt:jsx-component

Conversation

@cknitt
Copy link

@cknitt cknitt commented Nov 27, 2025

This is a draft change to an example to make component definitions more idiomatic / aligned to how we have been doing it in rescript-react. I.e. define a submodule with a make function with labeled arguments as props and a @react.component or @jsx.component annotation.

I only did it for the ProductCard component for testing, seemed to work fine.

There are more changes in the file because it was not formatted for ReScript 12, and my editor has format-on-save on. 🙂

@cknitt cknitt changed the title Use @jsx.component Use @jsx.component and JSX.array Nov 27, 2025
# Conflicts:
#	demos/BookstoreApp.res
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant