reacton-js
v4.0.5
Published
Reactive Web Components
Downloads
159
Maintainers
Readme
GitHub | GitFlic | GitVerse | NpmJS | Download⤵️
Reacton (short Rtn) is a JavaScript framework for quickly creating reactive Web Components. It supports all the methods and properties that are provided by standard Web components. In addition, the framework contains a number of additional methods and implements server-side rendering of Web components.
Below is an example of creating a simple component:
class WHello {
// initializing the properties of a state object
message = 'Reacton'
color = 'orangered'
static mode = 'open' // add Shadow DOM
// return the HTML markup of the component
static template = `
<h1>Hello, {{ message }}!</h1>
<style>
h1 {
color: {{ color }};
}
</style>
`
}
The project is in development...