Skip to content

vitogit/riot.js-vs-react.js-comment-box

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

Riot.js vs React.js for a simple comment box

Code based on the React.js tutorial removing the server communication. It´s just a form that add comments implemented in React.js and Riot.js, so I can see the differences between both .

The React.js code uses state and methods to interact between components. The code is coupled, but probably using another pattern could improve this.

The comment box Riot.js version uses a simple observable pattern to make the interaction between components decoupled, clean and easy.

Clone, install and run

npm install
npm start

then go to localhost:3001

You can compare both comment box versions:

/public/scripts/react-comments.js : react.js code
/public/scripts/riot-comments.tag : riot.js code

Online version

http://vitogit.github.io/riot.js-vs-react.js-comment-box/

About

Comment box implemented in Riot.js and React.js , based on react.js tutorial

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published