Skip to content

Update React page #593

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

Merged
merged 28 commits into from
Nov 25, 2022
Merged

Update React page #593

merged 28 commits into from
Nov 25, 2022

Conversation

mununki
Copy link
Member

@mununki mununki commented Nov 5, 2022

#592

  • Add React v0.10.0 page for versioning.
  • Update toc
  • Update JSX v4
  • Update the latest(v0.11.0) docs

@cristianoc
Copy link
Contributor

@fhammerschmidt @cknitt would you take a look?
As this is going to be the default docs shown, I guess perhaps it should be merged just when 10.1 is released.

let make = (~value, ~children) => {
React.createElement(provider, {"value": value, "children": children})
}
let make = React.Context.provider(context)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type props is missing

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't need to add the type props for context. It seems inferred properly with https://github.com/rescript-lang/rescript-react/blob/2c5dea342645921b3efe8b47022fe1d73012ad6e/src/React.res#L82

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, great, didn't know that, I thought one always had to define a type props in the module like one always had to define a function makeProps in V3. 👍

let context = React.createContext(() => ())

module Provider = {
let make = React.Context.provider(context)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type props is missing

@mununki
Copy link
Member Author

mununki commented Nov 15, 2022

Once the review is done, I'm going to rebase to master for resolving the conflicts.

@mununki
Copy link
Member Author

mununki commented Nov 16, 2022

Rebased to upstream master

@cristianoc
Copy link
Contributor

@mununki is this ready to merge, or are there outstanding issues?

@mununki
Copy link
Member Author

mununki commented Nov 25, 2022

Yes This PR is ready. Does it look okay?

@cristianoc
Copy link
Contributor

I'm going ahead and merge. It's still possible to fine tune if there are additional comments later.

@cristianoc cristianoc merged commit c171edc into rescript-lang:master Nov 25, 2022
@mununki mununki deleted the react branch November 25, 2022 12:57
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.

4 participants