-
-
Notifications
You must be signed in to change notification settings - Fork 631
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
React on Rails ReasonHelloWorld component #1215
Conversation
- bsconfig - bsb make and clean commands in build - ReasonHelloWorld.re component - added component to client registration file RAILS - add route - add hyperlink on main page - view file
- added bs-react-on-rails -
@@ -4,6 +4,7 @@ import 'es5-shim'; | |||
import ReactOnRails from 'react-on-rails'; | |||
|
|||
import HelloWorld from '../components/HelloWorld'; | |||
import HelloWorldReason from '../components/HelloWorldReason.bs'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@justin808 as is, it won't recognize HelloWorldReason.bs
component.
clientRegistration.jsx?209f:1 Uncaught Error: Cannot find module "../components/HelloWorldReason.bs"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just not how you integrate the bs into the JS. The JS code needs the compiled file to import.
@ljuster how's this going? We need CI to pass. |
@Judahmeek check this one out. Would be great to get this merged. |
@Judahmeek @behraaangm can we get this merged into spec/dummy? |
Hey @justin808, I wanna make a new branch from this work. |
Sure!
Yes! |
See #1399 |
* Cherry-pick commits from #1215 * Add ReScript dependencies and configuration * Remove Reason file, Replace Reason occurrences by ReScript * Add ReScript component, update yarn.lock at spec/dummy/ Create file to import compiled ReScript components * Add rake task to build ReScript when running rake assets:precompile * Add JavaScript dependency required to build for production * Run prettier and add *.bs.js files to .prettierignore * Add return at the end of the line package.json * Bump prettier, concurrently and prettier-eslint-cli add files to .prettierignore * Update bsconfig.json
* Cherry-pick commits from shakacode/react_on_rails#1215 * Add ReScript dependencies and configuration * Remove Reason file, Replace Reason occurrences by ReScript * Add ReScript component, update yarn.lock at spec/dummy/ Create file to import compiled ReScript components * Add rake task to build ReScript when running rake assets:precompile * Add JavaScript dependency required to build for production * Run prettier and add *.bs.js files to .prettierignore * Add return at the end of the line package.json * Bump prettier, concurrently and prettier-eslint-cli add files to .prettierignore * Update bsconfig.json
* Cherry-pick commits from shakacode/react_on_rails#1215 * Add ReScript dependencies and configuration * Remove Reason file, Replace Reason occurrences by ReScript * Add ReScript component, update yarn.lock at spec/dummy/ Create file to import compiled ReScript components * Add rake task to build ReScript when running rake assets:precompile * Add JavaScript dependency required to build for production * Run prettier and add *.bs.js files to .prettierignore * Add return at the end of the line package.json * Bump prettier, concurrently and prettier-eslint-cli add files to .prettierignore * Update bsconfig.json
REASON/REACT
- bsconfig
- bsb make and clean commands in build
- ReasonHelloWorld.re component
- added component to client registration file
RAILS
- add route
- add hyperlink on main page
- view file
This change is