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

kolkata Escorts
kolkata Escort
kolkata Independent Escorts
kolkata call girl
kolkata Escort Service
escort in kolkata
escorts in kolkata
independent escort in kolkata
kolkata Independent Escort

kolkata call girls
call girls in kolkata
call girls kolkata

Posted by Ankita Tiwari at

Independent India Escorts is present 24×7 hours for you. You can call 0000000000 to book our VIP Call Girls in India. You can also pre-book call girls services to save your money. You can also do pre-booking to hire your dream girl on demand. Indian Escorts are famous call girls in India. We offer gorgeous and most adorable Indian Escorts we have a large and expanding variety in Jaipur Escort Service because every client has different choice and taste and especially abroad customers wants Indian Call Girls for fun and do high-quality romance that’s why we have expanded types in Indian Call Girls. Indian Escorts in Jaipur we have Kashmiri Call Girls, Jaipur Independent Escorts Call Girls, South Indian Call Girls, Jaipur Escort - Housewife Call Girls , Indian College Call Girls and Indian Teen Call Girls etc.
Gurgaon Escort Service
||
  Chandigarh Independent Hi-fi Female Escorts Service - romachopra.com

  Kolkata Independent Hi-fi Female Escorts Service - romachopra.com

  Punchkula Independent Hi-fi Female Escorts Service - romachopra.com
 
Mohali Independent Hi-fi Female Escorts Service - romachopra.com

Rishikesh Independent Hi-fi Female Escorts Service - romachopra.com

Ghaziabad Independent Hi-fi Female Escorts Service - romachopra.com
Lucknow Independent Hi-fi Female Escorts Service - romachopra.com

  Agra Independent Hi-fi Female Escorts Service - romachopra.com

  Allahabad Independent Hi-fi Female Escorts Service - romachopra.com
 
  Varanasi Independent Hi-fi Female Escorts Service - romachopra.com

  Udaipur Independent Hi-fi Female Escorts Service - romachopra.com
 
  Jalandhar Independent Hi-fi Female Escorts Service - romachopra.com

Mussoorie Independent Hi-fi Female Escorts Service - romachopra.com

  Jodhpur Independent Hi-fi Female Escorts Service - romachopra.com

  Ludhiana Independent Hi-fi Female Escorts Service - romachopra.com

  Dehradun Independent Hi-fi Female Escorts Service - romachopra.com

  Indore Independent Hi-fi Female Escorts Service - romachopra.com

Noida Independent Hi-fi Female Escorts Service - romachopra.com

  Amritsar Independent Hi-fi Female Escorts Service - romachopra.com

  Goa Independent Hi-fi Female Escorts Service - romachopra.com

  Bangalore Independent Hi-fi Female Escorts Service - romachopra.com

Kanpur Independent Hi-fi Female Escorts Service - romachopra.com

  Nainital Independent Hi-fi Female Escorts Service - romachopra.com
 
  Jhansi Independent Hi-fi Female Escorts Service - romachopra.com

 
  Ranchi Independent Hi-fi Female Escorts Service - romachopra.com

Mumbai Independent Hi-fi Female Escorts Service - romachopra.com

  Delhi Independent Hi-fi Female Escorts Service - romachopra.com

  Hyderabad Independent Hi-fi Female Escorts Service - romachopra.com

  Chennai Independent Hi-fi Female Escorts Service - romachopra.com

Ajmer Independent Hi-fi Female Escorts Service - romachopra.com

  Haridwar Independent Hi-fi Female Escorts Service - romachopra.com
Kolkata Escorts

Pune Escorts

Lucknow Escorts

Delhi Escorts

Goa Escorts

Dehradun Escorts

Dehradun Escort

Ludhiana Escorts

Chandigarh Escorts

Noida Escorts

Bangalore Escorts

Ahmedabad Escorts

Gurgaon Escorts

Posted by India Escorts at

Excellent! Been able to figure out how ours work with this post. Thanks.
click here

Posted by Brielle Luna at

Learned from the best and learned a lot. Great! clearviewwc.com/

Posted by Horea Kaii at

Simply wish to say your article is as astonishing. The clarity in your post is simply great, and I could assume you are an expert on this subject. Well with your permission let me grab your RSS feed to keep updated with forthcoming post. Thanks a million and please keep up the gratifying work.

Posted by WordPress Development Company at

kid’s safety app is one of the most trusted applications in the parental control landscape. Download parental control apps today.

Posted by child tracking app at

Diagnostic immobilier

Posted by Diagnostic immobilier at

hey thanks for this post. very informative!  https://fresno-cleaning.com/

Posted by James Gandom at

your solved my problem. Thanks

Posted by gaming jackets 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 build royale at

Vedic Astrology
Vedic Astrology Services
Vedic Astrology Birth Chart
Astrologist In Chennai
Astrologers In Chennai
Astrological Services In Chennai
Hindu Vedic Astrology
Astrology Consultations In India
Astrologers Chennai
Astrologer Chennai
Astrology In Chennai
Kerala Astrologers In Chennai
Kerala Astrologer
Best Astrologers In Chennai
Famous Astrologers In Chennai
Astrology Consultant
Best Astrology Person In Chennai
Dubai Astrologers
Chennai Famous Astrologers
Astrology Consultant In India
Astrologers In India
Online Astrologers In India
Best Astrologers In India
Famous Astrologers In India
Good Astrologers In India
Vedic Astrologers In India

Posted by Numerologist in Chennai at

If you need any kind of assignment help, Then you can go AllAssignmentHelp.com. Here you will get high-quality assignment help. We have a team of assignment experts who will help you by delivering the contents as you desired.

Posted by assignment help at

Foreigner Escorts in Mahipalpur
Russian Escorts in Aerocity
Call Girls in Gujarat
Body Massage in Mahipalpur
Russian Call Girls in Udaipur
Call Girls  in Mahipalpur
Escorts Service in Udaipur
Escorts Service in Kolkata
Russian escorts in Faridabad
Russian Escorts in Mahipalpur
Russian Escort in Delhi
Foreigner Escorts in Mahipalpur
Call Girls in Gurgaon
Call Girls in Agra
Independent Escorts in Gurgaon 
Call Girls in Gurgaon
Escorts Service in Aerocity
Call Girls in Haridwar
Agra Call Girls
Hi Profile Escorts Agra
Hi Profile Call Girls in Jaipur
Massage Parlor in Delhi
Foreigner Escorts in Gurgaon 
Foreigner Escorts in Aerocity
Body Massage in mahipalpur
Escorts Service in Jaipur

Posted by Juhi Sharma at

I loved how you shows your Coding will apply them in my future

Hot Janakpuri Escorts
janakpuri call girls
call girls in janakpuri
janakpuri escorts call girls
escorts service in janakpuri
escorts agency in janakpuri
janakpuri escorts
janakpuri model call girls
model call girls in janakpuri

Posted by Jankakpuri Escorts at

Latest
<a href="https://panachehautecouture.com
">Indian Wedding Dresses </a> Online Shopping at Panache Haute Couture. We offer new arrivals outfits like Designer saree, Anarkali Suits, bridal lehenga, salwar kameez, Designer lehenga choli, indo western bridal gowns, Menswear Sherwani, Tuxedo, Vests, and more at best prices.

Posted by phautecouture at

Very Informative post on react. Thanks.

Posted by Web Designer India at

Call 8648900693 and Call Girls in Goa Independent Goa Escorts Service is offering VIP Female escorts services. As an experienced escort, she knows exactly what you need and she is really good at teasing your senses and making you satisfied. Customers like this Goa escort because she is very generous and gives everything her valued customers look for in her.
TAGS: Escort Girls in Goa, Call Girls in Goa, Female Escort in Goa, Independent Escort Girls in Goa, Escort Girl in Goa, Call Girl in Goa, Female Escorts in Goa, Independent Escort Girl in Goa, Goa Escort Service. Goa Escort Agency, Hi Profile Model Girl Escort, Phone No. of Escort Girl in Goa, Mobile No. of Escort Girl in Goa, Goa Best Escort Service, Goa Best Escort Girl, Best Escort Service in Goa, Escort Girls Mobile Mo., Call Girls Mobile No., Female Escort Mobile No, Escort Girl Phone No., Female Escort Phone No, Independent Escort Phone No. in Goa,
LOCATIONS: Baga, Calangute, Candolim, Arpora, Anjuna, Morjim, Vagator, Dona Paula, Panjim, and All over North And South Goa
Goa Call Girls
Goa Call Girl Service
Goa Escort Girls
Call Girls in Goa
Goa Escorts
Call Girls in Sangolda
Call Girls in Bardez
Call Girls in Panjim
Call Girls in Arambol
Call Girls in Morjim
Call Girls in Ashvem
Call Girls in Candolim
Call Girls in Nagoa
Call Girls in Nerul
Call Girls in Dona Paula
Call Girls in Siolim
Call Girls in Porvorim
Call Girls in Anjuna
Call Girls in Arpora
Call Girls in Mapusa
Call Girls in Vagator
Call Girls in Calangute
Call Girls in Baga
Escort Service in Goa

Posted by Goa Call Girls at

Call 8648900693 and Call Girls in Goa Independent Goa Escorts Service is offering VIP Female escorts services. As an experienced escort, she knows exactly what you need and she is really good at teasing your senses and making you satisfied. Customers like this Goa escort because she is very generous and gives everything her valued customers look for in her.
TAGS: Escort Girls in Goa, Call Girls in Goa, Female Escort in Goa, Independent Escort Girls in Goa, Escort Girl in Goa, Call Girl in Goa, Female Escorts in Goa, Independent Escort Girl in Goa, Goa Escort Service. Goa Escort Agency, Hi Profile Model Girl Escort, Phone No. of Escort Girl in Goa, Mobile No. of Escort Girl in Goa, Goa Best Escort Service, Goa Best Escort Girl, Best Escort Service in Goa, Escort Girls Mobile Mo., Call Girls Mobile No., Female Escort Mobile No, Escort Girl Phone No., Female Escort Phone No, Independent Escort Phone No. in Goa,
LOCATIONS: Baga, Calangute, Candolim, Arpora, Anjuna, Morjim, Vagator, Dona Paula, Panjim, and All over North And South Goa
Goa Call Girls
Goa Call Girl Service
Goa Escort Girls
Call Girls in Goa
Goa Escorts
Call Girls in Sangolda
Call Girls in Bardez
Call Girls in Panjim
Call Girls in Arambol
Call Girls in Morjim
Call Girls in Ashvem
Call Girls in Candolim
Call Girls in Nagoa
Call Girls in Nerul
Call Girls in Dona Paula
Call Girls in Siolim
Call Girls in Porvorim
Call Girls in Anjuna
Call Girls in Arpora
Call Girls in Mapusa
Call Girls in Vagator
Call Girls in Calangute
Call Girls in Baga
Escort Service in Goa

Posted by Goa Call Girls at

A new attraction in town is the Russian Call girls in Goa. There were a lot of late tourists from Russia in India and most of them did not return to their home country. Some of the Russian women stayed back in Goa and are now willing to offer their services to the grown men of the city. They loved the Indian culture and life and were able to provide their services. Escorts in Baga Beach
Panjim Beach Escorts

Posted by Russian Call girls in Goa at

You offer a great service to us readers, and please keep it up.

Posted by Masonry Edmonton Contracting at

I really enjoyed reading your article. I found this as an informative and interesting post, so I think it is very useful and knowledgeable.

Posted by Charlie’s Angels Naomi Scott Jacket at

WE offer all Executive Cars on Rent for Daily, Weekly, Monthly Bases in bahria town rawalpindi and islamabad 0333-561-0000

Posted by aarman malik at

Kolkata Escort
Kolkata Russian Escort
Kolkata Russian Escorts
Kolkata Russian Escort Service
Kolkata Russian Call Girls
Kolkata Escorts
Kolkata Escort Service
Kolkata Model Escort
Kolkata Female Escort

Posted by Simran Sharma at

thanks for sharing informative post...

Posted by Download One Click Root App Framaroot APK at

Really interesting peace that must reach more interesting persons like sex mv

Posted by sex mecklenburg vorpommern at

Very Informative post on react. Thanks.

Posted by denui kolp at

Hey
I appreciate your efforts in preparing this post. I really like your blog articles.
Thanks

Posted by Concreting at

Add your comment