Apallax.js generates a website in milliseconds!
It's very easy to create a website with Apallax.js .
Apallax.js has already fully functional components included.
You can include a variable into a component with ${this.props.NAME} .
To create a website with Apallax.js you need to do the
following
steps:
1. Create a new folder for your project.
2. Create a file named index.html and give the body tag
the ID apallax-root in your project.
3. Create a folder in your project named components.
4. Create a file named app.js in components.
5. Import the app.js file in index.html with:
<script type="module"
src="./components/app.js"></script>
import { Apallax } from
'https://cdn.jsdelivr.net/npm/apallax.js@latest/apallax.js';
import { Component } from
'https://cdn.jsdelivr.net/npm/apallax.js@latest/component.js';
import { Component } from
'https://cdn.jsdelivr.net/npm/apallax.js@latest/component.js';
export class NAME_OF_COMPONENT extends Component
{
render() {
return
`HTML_CODE`;
}
}
${this.props.NAME}
import { NAME_OF_COMPONENT } from
'./FILE_NAME.js';
Apallax.addComponent('NAME_OF_COMPONENT',
NAME_OF_COMPONENT);
class App extends Component {
render() {
return `HTML_CODE`;
}
}
${Apallax.component('NAME_OF_COMPONENT', {
PROPERTIES })}
${Apallax.component('NAME_OF_COMPONENT', {
PROPERTY_NAME: 'PROPERTY_CONTENT',
PROPERTY_NAME: 'PROPERTY_CONTENT' })}
Apallax.addComponent('App', App);
Apallax.render('App', null, null,
'apallax-root');