Comments (2)
If I manually correct this and rerun from the console then it works i.e.
riot.tag2('es-6', '<p>{getMessage()}</p>', '', '', function(opts) {
'use strict';
var name = 'Riot';
this.message = 'Hello ' + name;
this.getMessage = function () {
return this.message;
};
});
riot.mount('*')
from examples.
you are right this example was made with an old babel version. We need to update it using the newest babel
from examples.
Related Issues (20)
- Named Slots HOT 1
- Typo in package.json HOT 1
- Live filtering example doesn't work HOT 3
- Question on example: animated-list-reordering HOT 2
- Rollup plugin failed to parse a tag in certain condition HOT 1
- Humbly asking for help. HOT 1
- Issue with yielding data from <calendar> to <btn> (riot-bootstrap) HOT 1
- Import scss files in riotjs single file components HOT 2
- webpack no longer has preLoaders HOT 1
- GraphQL Example is blank HOT 2
- What is the most up-to-date recommended seed/setup for latest riot version (3.11)? HOT 1
- Code-splitting bundle.js HOT 1
- Riot with Tailwind HOT 1
- Migrate remaining examples to riot4 HOT 3
- ES6 example HOT 1
- Not working in IE11 HOT 7
- typescript fails to start with "Error: Debug Failure. False expression." HOT 10
- Webpack example doesn't work HOT 1
- DOMException Failed to execute 'insertBefore' on 'Node' HOT 1
- checked checkbox when deleting todo item HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from examples.