Skip to content

Add react-on-rails on a isolated engine to test it#241

Closed
beagleknight wants to merge 1 commit intomasterfrom
chore/add-react-on-rails
Closed

Add react-on-rails on a isolated engine to test it#241
beagleknight wants to merge 1 commit intomasterfrom
chore/add-react-on-rails

Conversation

@beagleknight
Copy link
Copy Markdown
Contributor

🎩 What? Why?

As a starting point of our comments module we need to include some way to render react components on our application. As discussed here #215 we are gonna try react-on-rails.

I want to test this in a isolated engine so we can iterate from here to create the comments module.

📌 Related Issues

📋 Subtasks

  • Create isolated engine to test react-on-rails
  • Install react-on-rails
  • Create a hello world component

📷 Screenshots (optional)

None

👻 GIF

None

@mention-bot
Copy link
Copy Markdown

@beagleknight, thanks for your PR! By analyzing the history of the files in this pull request, we identified @josepjaume, @mrcasals and @oriolgual to be potential reviewers.

@@ -0,0 +1,4 @@
# desc "Explaining what the task does"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing frozen string literal comment.

require "decidim/comments/engine"

module Decidim
module Comments
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing top-level module documentation comment.

@andreslucena
Copy link
Copy Markdown
Member

For this is really important to have some kind of progressive enhancement. This is a good reading regarding this: https://gdstechnology.blog.gov.uk/2016/09/19/why-we-use-progressive-enhancement-to-build-gov-uk/
Maybe on the react case it's possible to use the prerender option, but it needs to have testing. Also we can put a noscript alert to invite the user to enable javascript.

@beagleknight
Copy link
Copy Markdown
Contributor Author

Hi @andreslucena I'm agree with the progressive enchancement approach. We are aiming for rendering the component on server side so they can be visualized without javascript. We are gonna start simple, a basic comment box to put new comments without hierarchy.

@beagleknight beagleknight mentioned this pull request Nov 17, 2016
14 tasks
@beagleknight
Copy link
Copy Markdown
Contributor Author

I'm closing this in favor of #250

@beagleknight beagleknight deleted the chore/add-react-on-rails branch November 17, 2016 13:51
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