Skip to content

Conversation

gscarv13
Copy link
Contributor

@gscarv13 gscarv13 commented Jan 3, 2022

The goal of this PR is to update:

  • Rails from 5 to 6
  • Webpacker
  • Webpack configuration
  • Replace Reason with ReScript
@gscarv13 gscarv13 changed the title Update project Update ReScript example Jan 3, 2022
@gscarv13 gscarv13 requested a review from alex35mil January 3, 2022 14:53
@alex35mil
Copy link
Member

@gscarv13 Is it possible to submit a separate PR for ReScript related changes? I'm not the best person to review the Ruby/Rails parts.

@gscarv13 gscarv13 changed the title Update ReScript example Update Rails and Webpacker config Jan 6, 2022
@alex35mil alex35mil requested review from justin808 and removed request for alex35mil January 6, 2022 09:03
Copy link
Member

@justin808 justin808 left a comment

Choose a reason for hiding this comment

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

LGTM

@justin808
Copy link
Member

Hi @alexfedoseev, The Rails parts are boilerplate updates. I approved those in 3 min.

Please skip the ruby files and do a cursory review.

@gscarv13 gscarv13 changed the title Update Rails and Webpacker config Update Rails, Webpacker and ReScript Jan 6, 2022
@gscarv13 gscarv13 requested a review from alex35mil January 10, 2022 19:39
Copy link
Member

@alex35mil alex35mil left a comment

Choose a reason for hiding this comment

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

lgtm

let (name, setName) = React.useState(() => nameProp)

<div>
<h3> {("Hello, " ++ name ++ "!")->React.string} </h3>
Copy link
Member

Choose a reason for hiding this comment

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

It's better to use interpolation:

`Hello, ${name}!`
@justin808 justin808 merged commit de61f54 into master Jan 12, 2022
@justin808 justin808 deleted the gscarv13/rescript-update branch January 12, 2022 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants