It’s just data

React.rb

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 = this.props.data.map(function (comment) {
      return (
        <Comment author={comment.author}>
          {comment.text}
        </Comment>
      );
    });
    return (
      <div className="commentList">
        {commentNodes}
      </div>
    );
  }
});

Equivalent using the Ruby2JS filter:

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

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 article..it 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 www.essaycorp.com 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

roku.com/link
xfinity.com/activate
pbs.org/activate
yahoo customer service
www.hulu.com/activate
yahoo customer service
nbc.com/activate
xfinity.com/authorize
fox sports go activate
espn.com/activate
espn.com/activate
roku.com/link

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

http://pro-classified-ads.com/author/dollar4cars/
https://release-perf-prod-d7-autocar-co-uk.whatcardev.haymarket.com/users/dollar4cars
http://postclassifiedadfree.com/author/dollar4cars/
http://counterstrikecheat.forumcrea.com/profile.php?id=13798
https://writeonwall.com/author/dollar4cars/
http://kidskadebo.forumcrea.com/profile.php?id=154

Posted by Dollar 4 Cars at

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

Posted by Andrew Peter Langcake at

https://www.edocr.com/user/inpaktgroupcom
https://dusalat.com/directory/author/inpaktgroup/
http://marketingforums.net/member.php?u=32594
http://inpaktgroup.brandyourself.com/
https://www.business.com/advice/member/p/inpakt-group/
https://skepchick.org/members-2/inpaktgroup/profile/

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, https://www.ameriaa.com/

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

Diagnostic immobilier Marseille

Posted by youssou at

Your article is very good, I have read many articles but I am really impressed with your posts. Thank you, I will review this article. To know about me, try talking to me.

Posted by powerline io at

http://www.orapages.com/scubanautic

http://sade.forumcrea.com/profile.php?id=9928

https://www.leasedadspace.com/members/scubanautic

Posted by Scubanautic Mallorca at

This carriage gets a huge amount of reverence from reporters for being definitely not hard to move, even on lopsided ground. “I bought this for my one-year-old and five-year-old to take when we visited Europe this mid year amidst an escape,” Keeps in contact with one expert, observing, “It did bewildering on a wide scope of scene and different roads: both cobblestone and cleared. It made a 8-mile move to an ice sinkhole (extreme) in Austria.” Another examiner calls it “by far the most clear traveling carriage” since it is "definitely not hard to control, sufficiently minimal to encounter all doors, and kept the kids together in immense gatherings.

Posted by best affordable convertible car seat at

http://burkinajobs.net/companies/Plan-3-Media/

https://taqaror.com/companies/Plan-3-Media/

http://adnegroup.com/companies/Plan-3-Media/

https://jobgetnow.com/companies/Plan-3-Media/

https://careers.electronicsforu.com/companies/Plan-3-Media/

Posted by Plan 3 Media at

This is good website to get information. thanks admin

Posted by Free Download PC Games at

I was reading some of your content on this website and I conceive this internet site is really informative ! Keep on putting up. hairy indian escort

Posted by Digital_Zone at

Great post, and great website. Thanks for the information! natural escort

Posted by Digital_Zone at

Hello, I have browsed most of your posts. This post is probably where I got the most useful information for my research. Thanks for posting, maybe we can see more on this. Are you aware of any other websites on this subject. girlfriend experience escort

Posted by Digital_Zone at

Thank you for some other informative website. The place else may just I get that kind of information written in such a perfect method? I have a venture that I am simply now running on, and I’ve been at the glance out for such info. redhead london escort

Posted by Digital_Zone at

Pretty good post. I have just stumbled upon your blog and enjoyed reading your blog posts very much. I am looking for new posts to get more precious info. Big thanks for the useful info. unique kids clothes

Posted by Digital_Zone at

This is my first time visit to your blog and I am very interested in the articles that you serve. Provide enough knowledge for me. Thank you for sharing useful and don’t forget, keep sharing useful info: sun city oro valley homes for sale

Posted by Digital_Zone at

twc email sign in

Very good, I think I found the knowledge I needed. I will see and refer some information in your post. thank you

Posted by twc email sign in at

Its really great article i have seen today, Its very informative and interesting for me. I appreciate your hard work and experience. I’m waiting for more post like this. Thanks for sharing!

Posted by Harrison Ford Coat at

Thanks for providing this wonderful site; this is very useful to get backlinks. We provide training for all sort of IT couses through experienced trainers online, please visit our website to get more information on courses: https://itcources.com

Posted by sowjanya at

||https://www.podomatic.com/podcasts/joyhopson-09
||https://www.4shared.com/u/NVULgepT/joyhopson.html
||http://ttlink.com/joyhopson09
||https://www.spoonflower.com/profiles/joyhopson09?sub_action=shop
||https://steepster.com/joyhopson09
||https://itsmyurls.com/joyhopson09#
||https://www.blogtalkradio.com/joyhopson09
||https://www.flipsnack.com/joyhopson09/
||https://robbyjaksan.livejournal.com/profile
||https://soundcloud.com/shawn-michaels-769341791
||https://www.deviantart.com/joyhopson09
||https://about.me/smichaels
||https://visual.ly/users/joyhopson09/portfolio
||https://knowyourmeme.com/users/shawn-michaels
||https://moz.com/community/users/14097921
||https://issuu.com/joyhopson.09
||https://disqus.com/by/disqus_fj4aGqr4Mv/
||https://weheartit.com/joyhopson_09
||https://myspace.com/joyhopson09
||https://www.etsy.com/in-en/people/vux4jygu
||https://www.goodreads.com/user/show/109138980-joyhopson09
||https://pbase.com/joyhopson09/profile
||https://www.couchsurfing.com/users/2012707382

Posted by robbyjaksan at

You have done it really well. You have to post many more blogs here all of your blogs are full of creativity and That is just amazing.

Posted by Greedfall Sir Sardet Jacket at

http://marketingforums.net/member.php?u=32846
https://startupmatcher.com/p/carswreckers
http://local-classified-ads.com/author/carswreckers/
http://businessclassifiedsads.com/author/carswreckers/
http://www.apsense.com/brand/carswrecker/about

Posted by Cars Wreckers at

http://tradeanne.forumcrea.com/profile.php?id=178
http://watiempire.forumcrea.com/profile.php?id=5293
http://www.apsense.com/brand/cashforscrapcars/about
https://www.ilch.de/user-details-28803.html

Posted by Cash For Scrap Cars at

ehtelam treatment in lahore and dhant ka ilaaj in lahore
ehtelam ka ilaj in lahore
mushtzani ka ilaaj lahore
namardagi ka ellaj treatment lahore
namardi ka ilaj in lahore
surat e anzal in lahore
shock wave therapy in lahore
oligospermia in lahore
azoospermia in lahore
surate e anzal in lahore
vaginismus treatment in lahore
p shot treatment in pakistan

ehtelam treatment in islamabad
dhant ka ilaaj in islamabad
ehtelam ka ilaj in islamabad
mushtzani ka ilaaj islamabad
namardagi ka ellaj treatment islamabad
namardi ka ilaj in islamabad
surat e anzal in islamabad
shock wave therapy in islamabad
oligospermia in islamabad
azoospermia in islamabad
surate e anzal in islamabad
vaginismus treatment in islamabad
p shot treatment in Islamabad

ehtelam treatment in faisalabad
dhant ka ilaaj in faisalabad
ehtelam ka ilaj in faisalabad
mushtzani ka ilaaj faisalabad
namardagi ka ellaj treatment faisalabad
namardi ka ilaj in faisalabad
surat e anzal in faisalabad
shock wave therapy in faisalabad
oligospermia in faisalabad
azoospermia in faisalabad
surate e anzal in faisalabad
vaginismus treatment in faisalabad
p shot treatment in faisalabad

ehtelam treatment in pakistan
dhant ka ilaaj in pakistan
ehtelam ka ilaj in pakistan
mushtzani ka ilaaj pakistan
namardagi ka ellaj pakistan
namardi ka ilaj in pakistan
surat e anzal in pakistan
shock wave therapy in pakistan
oligospermia in pakistan
azoospermia in pakistan
surate e anzal in pakistan
vaginismus treatment in pakistan
p shot treatment in pakistan

Posted by p shot treatment in lahore at

Voordat u nieuwe kozijnen laat plaatsen in uw woning, wilt u natuurlijk eerst weten wat nieuwe kunststof kozijnen kosten. Er zijn verschillende factoren die de kosten voor kunststof kozijnen beïnvloeden, zoals het formaat van uw kozijnen, het soort raam en de kwaliteit van het glas. Overzicht prijzen kunststofkozijnen

Posted by Digital_Zone at

Wanneer u nog twijfeld koop dan eerst een wegwerp e-sigaret. Als u er nog niet uit bent of elektrisch roken wel bij u past, dan is deze elektrische sigaret wellicht de moeite waard om eerst te proberen. Een wegwerp e-smoker wordt ook vaak gekocht om mee te nemen bij een avondje uit. Wegwerp e-sigaret

Posted by Digital_Zone at

Kantplanksets in diverse materialen ideaal steigermateriaal voor rolsteigers van hout en aluminium. Kantplanksets

Posted by Digital_Zone at

Pretty good post. I have just stumbled upon your blog and enjoyed reading your blog posts very much. I am looking for new posts to get more precious info. Big thanks for the useful info. Read this Review

Posted by Digital_Zone at

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. Property management services

Posted by Digital_Zone at

Excellent post. I was always checking this blog, and I’m impressed! Extremely useful info specially the last part, I care for such information a lot. I was exploring this particular info for a long time. Thanks to this blog my exploration has ended. high voltage ceramic capacitor

Posted by Digital_Zone at

Interesting topic for a blog. I have been searching the Internet for fun and came upon your website. Fabulous post. Thanks a ton for sharing your knowledge! It is great to see that some people still put in an effort into managing their websites. I’ll be sure to check back again real soon. bayan parfüm

Posted by Digital_Zone at

I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often. london domme escort

Posted by Digital_Zone at

Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with extra information? It is extremely helpful for me. independent escort

Posted by Digital_Zone at

Good website! I truly love how it is easy on my eyes it is. I am wondering how I might be notified whenever a new post has been made. I have subscribed to your RSS which may do the trick? Have a great day! small business SEO

Posted by Digital_Zone at

Hello I am so delighted I located your blog, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work. flyttstädning orsa

Posted by Digital_Zone at

Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more information? It is extremely helpful for me. Check website traffic

Posted by Digital_Zone at

do you want to get in touch with sexy hot girls? Try to visit Sexvoorkeuren and enjoy all night

Posted by Sexvoorkeuren at

Add your comment