Questions tagged [riot.js]

Riot is a React-like user interface micro-library. Incredibly fast, powerful yet tiny client side (MV*) library for building large scale web applications.

About

Despite the small size all the building blocks are there: a template engine, router, event library and a strict MVP pattern to keep things organized. On a finished application your views are automatically updated when the underlying model changes.

Current frameworks base their existence on following assumptions:

There's a big mass of common problems
MVC (or MVP) requires a framework
jQuery leads to spaghetti

Riot will teach you that none of the above is true. Client applications can be faster, simpler and smaller. They could be maintained with less people, less knowledge, and less worries.

Riot is a manifesto for vanilla JavaScript and jQuery.

Links

221 questions
3
votes
2 answers

Riotjs - Front-end page Structure

I'm using the riot for the system. but I have a problem using the common tag in every place. because I have to copy the all common tag each page. I added all tags like this. Does anyone have the solution for this ?
3
votes
1 answer

How to update properties of riot tags?

I've created a riot tag which renders many svg elements in loop Now I've two conditions Update a particular tag Update all the tags To update properties of a particular tag,…
Amit Kumar Gupta
  • 7,193
  • 12
  • 64
  • 90
3
votes
0 answers

session management for multiple concurrent users in node+express js

I am trying to login as admin using mobile device and after successful login, I am setting cookie in response header. Mean while, when I try to access routes from other device(laptop), I get all admin access from other device. How do I maintain…
kittu
  • 6,662
  • 21
  • 91
  • 185
3
votes
1 answer

riot.js : add tag dynamically and mount it

I am very new to riot.js and may be i am asking an obvious thing. If I add tag statically and then mount it - everything works perfectly. But if I try to add tag using JavaScript dynamically - I see nothing. I suppose that I must somehow mount newly…
never
  • 671
  • 1
  • 6
  • 18
3
votes
3 answers

Accessing a Riot.js tag's properties from the DOM

I'm playing with Riot.js and everything is working great. But let's say I have a page where I mounted this single tag:
bjork24
  • 3,153
  • 7
  • 35
  • 46
3
votes
2 answers

Riot.js How to repeat tag a certain number of times?

I need just repeat tag 5 times. I read documentation, but did not realize how to do something like this: I found only this ugly way: this.stars = new…
AndreyT
  • 1,449
  • 1
  • 15
  • 28
3
votes
2 answers

How do I pass variables into my class, ID, or data attribute in RiotJS?

I can't seem to figure out how to pass my variable into the class, ID, or data attributes on my custom element. opts.status, opts.id, and opts.url all work if I…
bholtbholt
  • 11,281
  • 6
  • 22
  • 32
3
votes
2 answers

Riot.mount(*) doesnt have any effect

Simple problem here but unfortunately can't solve. As mentioned in the title, I can't get Riot to show the contents of its custom tag.