It’s just data


Having determined that Angular.js is overkill for my blog rewrite, I started looking more closely at React.  It occurred to me that I could do better than JSX, so I wrote a Ruby2JS filter.  Compare for yourself.  Excerpt from the React tutorial:

var CommentList = React.createClass({
  render: function() {
    var commentNodes = (comment) {
      return (
        <Comment author={}>
    return (
      <div className="commentList">

Equivalent using the Ruby2JS filter:

class CommentList < React 
  def render
    _div.commentList do
      @@data.forEach do |comment|
        _CommentBlock comment.text, author:

Note: I renamed the Comment class to CommentBlock to avoid a conflict with the existing Comment API.  I wouldn’t have thought that would be necessary, but things didn’t work until I made this change.

Full source for the tutorial reimplemented in Ruby is available.

Problem with Comment has been fixed.  Underlying cause was ruby2js attempting to us an ES6 feature: const.

Posted by Sam Ruby at

Its really great article i have seen today, I appreciated your hard work and experience. I would love to share your article to other platforms. Thanks for sharing!

Posted by Harley Davidson Leather Jacket at

Call Girls in Faridabad
Female Escorts in Faridabad
Russian Escorts in Faridabad
Call Girls in Agra
Escorts Service in Agra
Female Escorts in Agra
Russian Escorts in Agra
Female Escorts in Faridabad
Escorts in Faridabad
Call Girls in Faridabad
Escorts Service in Faridabad
Escorts in Faridabad
Female Escorts in Faridabad
Russian Escorts in Faridabad
Call Girls in Agra
Escorts Service in Agra
Female Escorts in Agra
Russian Escorts in Agra
Female Escorts in Faridabad
Call Girls in Faridabad
Escorts Service in Faridabad
Escorts in Faridabad
Female Escorts in Faridabad
Russian Escorts in Faridabad
Call Girls in Agra
Escorts Service in Agra

Posted by Pooja Ahuja at

Try using hash tags. That way your blog gets put out there when people are searching for certain.

Posted by Apoc Yellow Jacket at

ReactComponent life cycle, the native this will be passed to the class’s initializer. And all corresponding life cycle methods (componentDidMount, etc) will be invoked on the instance using the snake-case method name.

Posted by mcdvoice at

I have been wondering about this issue, so thanks for posting.

Pest Control in Henderson

Posted by Pest Control in Henderson at

Great post really. It helps me a lot. Thanks for sharing this.

Posted by Programming Assignment Help at

Try using hash tags

Posted by Toko Bunga Jakarta at

Time For Try This Tutorial

Posted by Kios Komputer at

I love it! We are following your website posts. 
Please keep on posting and sharing great ideas.
Posts are all wonderful.

Best Home Renovations Kitchener

Posted by Best Home Renovations Kitchener at

Thanks for Your gives us immense knowledge.Body massage gives you ultimate relief to your body.i would like to recommend each and everyone go for massage once in a week for ultimate relief. it will not only gives you relief but also increase your productivity.

escorts near me

call girls near me

Jaipur call girls

Jaipur Escort

Posted by Jaipur call girls at

Students who wish to score A+ grade in such typical assignments can connect to us at and avail the excellent assignment help in structural engineering. EssayCorp currently offering flat 10% discount on each assignment booking. We assure 100% plagiarism free assignments without any error. Acquire our swift assistance and submit your assignment before the deadline. Hurry up and avail the benefits now!

Posted by John Smith at

There are many writing companies functioning in the market, but despite their presence, these companies have never maintained a loyal clientele because of their poor working strategies. Unlike them, Essays Tigers is renowned for providing quality writing assistance to students. So, choose the best UK essay writing service for assistance by placing an order now!

Posted by Best essay help online at

Thanks blogger for sharing the best article.

Posted by Peaky Blinders Coat at

Lucknow Call Girls
Lucknow Escorts
Call Girls In Lucknow
Call Girl In Lucknow
Escorts Service In Lucknow
Lucknow Escorts Service
Lucknow Call Girls Service
Escorts In Lucknow
Call Girls Service In Lucknow
Lucknow Call Girls Service
Lucknow Escort
Russian Escorts In Lucknow
call girls in Ajmer
call girls in Ajmer
Escorts in Ajmer
Call Girls In Lucknow
Call Girls In Lucknow

Posted by Lucknow Call Girls at
yahoo customer service
yahoo customer service
fox sports go activate

Posted by Garmin nuvi Update at

Diagnostic immobilier

Posted by Techpro at

At long last, the game incorporates both PvE and PvP components. There are a couple of bugs since it is so new and it’s an allowed to play portable game which consistently draws rage. Nonetheless, the individuals who like the show and wouldn’t fret the allowed to play components may locate this a good time for some time. Disney Frozen Adventures is a match-three game with Disney’s Frozen as a subject. There are different characters from the film and the recognizable, agreeable mechanics of a great match-three game. The game incorporates catalysts for simpler culminations, several levels with changing degrees of trouble, and a collectible specialist where you purchase enrichments for your own château.

Posted by Angry Birds Transformers mod apk at

Thanks for sharing us a great information that is actually helpful

Posted by play atari breakout at

Posted by Dollar 4 Cars at

  Please continue this great work and I look forward to more of your awesome blog posts.

Posted by Andrew Peter Langcake at

Posted by Inpakt Group at

such a nice info i found it so amazing glad to read this best site ever

Posted by OxygenOS 10.0.1 Android 10 update on OnePlus 7 at

chaturbate token currency hack host the most-reliable Chaturbate token generator tool in the entire online market. Our hacking tool provides the best premium tokens for free and for real.

Posted by free coin master at

American Aesthetic Association is providing best aesthetic medicine courses. So if you want to become our member then don’t time and visit right now,

Posted by aesthetic medicine at

Very effectively written information.Thanks a lot to consider us and write such a nice-searching weblog  I am having a top notch time right here in this website and you probably did a wonderful job for which I was hoping for a long time Keep it up.

Posted by PHD Thesis Writing services in USA at

Passion Elite Hyderabad Escorts girls are waiting for to prevent you from stressful life and restless night.feel lucky to have hotty in bed with a warm feeling of her lip and extra smooth body feel like silk touch you get lifetime memory with feeling of joys and you never get alternative horny Hyderabad escorts girls.

Posted by Priya Singh at

Thank you for sharing!
Ryan Litfin Minnesota

Posted by NikkiG at

you can find 5 ways to fix iPhone stuck when signing to iCloud and if one solution does not help, go to the next one.

Posted by fix iPhone stuck when signing to iCloud at

KIK App for PC is a video calling messenger app. Well, there are some methods by which you can use KIK. Download KIK for PC with four tested methods.

Posted by kik App at

Hotmail Login is the most favorite among the corporate industry and students. Hotmail comes with many features

Posted by hotmail at

Ruby2JS filter is looking more compact and optimized! This proves new technology and languages are some what optimized for better performance.

Posted by assignment writing service cheap at

Viewmypaycheck intuit is the website which has all details related to tax slab. You can easily go to the website and check your desired information at no cost do check link viewmypaycheck

Posted by viewmypaycheck intuit at

Test page now easily available to print with the help of color printer test page not only color but black and white also that to online without any software.

Posted by color printer test page at

Add your comment