I am starting my web application using Reactjs as front-end, and Rails as Back-end. I see on the internet said: Reactjs rendering is too fast. But when I try using it, I see the speed render view seem slower than render in rails using loop. Below is my jsx file:
var CommentList = React.createClass({
render: function() {
return (
<ul>
{this.props.data.map(function(comment){
return(
<Comment content={comment.content} key={comment.id} />
);
})}
</ul>
)
}
});
If I have over 100K data from server, it seems load slower than I use normal Rails code to render view. Am I wrong with anything? Reactjs render is faster, is it true?
Aucun commentaire:
Enregistrer un commentaire