Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReScript 10.1 new features #141

Closed
aspeddro opened this issue Nov 3, 2022 · 0 comments
Closed

ReScript 10.1 new features #141

aspeddro opened this issue Nov 3, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@aspeddro
Copy link
Collaborator

aspeddro commented Nov 3, 2022

Syntax

JSX v4

  • Props spread <div {...props} />
  • Share props type between components JSX v4 shared props syntax#699
    type sharedProps = {
       x: string,
       y: string,
     }
     
     module A = {
       @react.component(:sharedProps)
       let make = (~x, ~y) => React.string(x ++ y)
     }
     
     module B = {
       @react.component(:sharedProps)
       let make = (~x, ~y) => React.string(x ++ y)
     }

rescript-association/rescript-lang.org#568

@nkrkv nkrkv added the enhancement New feature or request label Nov 3, 2022
aspeddro added a commit to aspeddro/tree-sitter-rescript that referenced this issue Nov 17, 2022
aspeddro added a commit to aspeddro/tree-sitter-rescript that referenced this issue Nov 17, 2022
@aspeddro aspeddro closed this as completed Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants