3.0.3 • Published 4 months ago

araz v3.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

Araz.js

Araz.js is a mini framework that provides a simple and intuitive API for building web applications. It is inspired by popular frameworks like React and Vue.js, but with a focus on simplicity and ease of use.

Installation

To install Araz.js, simply run the following command in your terminal:

npm install araz

Usage

Araz.js is a component-based framework, which means that your application is built by composing reusable components. Each component is a self-contained unit that has its own state and logic.

To create a component, you can use the el() function. This function takes an object with three properties: $tag, $attrs, and $children.

  • $tag is the HTML tag name of the component.
  • $attrs is an object containing the attributes of the component.
  • $children is an array of child components.

For example, the following code creates a simple button component:

const button = el(
 'button',
   {
    type: 'button',
    class: 'btn btn-primary',
  },
  'Click me',
);

Once you have created a component, you can mount it to the DOM using the mount() function. This function takes two arguments: the component to be mounted, and the target element in the DOM.

For example, the following code mounts the button component to the <body> element:

mount({
  $node: button,
  $target: document.body,
});

Araz.js includes a simple router that allows

Generated by BlackboxAI

3.0.3

4 months ago

3.0.2

4 months ago

3.0.1

4 months ago

3.0.0

4 months ago

2.1.8

9 months ago

2.1.7

9 months ago

2.1.4

9 months ago

2.1.3

9 months ago

2.1.2

9 months ago

2.1.1

9 months ago

2.1.0

9 months ago

2.0.17

9 months ago

2.0.16

9 months ago

2.0.15

9 months ago

2.0.14

9 months ago

2.0.13

9 months ago

2.0.12

9 months ago

2.0.11

9 months ago

2.0.10

9 months ago

2.0.9

9 months ago

2.0.8

9 months ago

2.0.7

9 months ago

2.0.6

9 months ago

2.0.5

9 months ago

2.0.4

9 months ago

2.0.3

9 months ago

2.0.2

9 months ago

2.0.1

9 months ago

2.0.0

9 months ago

1.2.2

9 months ago

1.2.1

9 months ago

1.2.0

9 months ago

1.1.9

9 months ago

1.1.8

9 months ago

1.1.7

9 months ago

1.1.6

9 months ago

1.1.5

9 months ago

1.1.4

9 months ago

1.1.3

9 months ago

1.1.2

9 months ago

1.1.1

9 months ago

1.1.0

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago