Logo

dev-resources.site

for different kinds of informations.

Noor JS The New JavaScript UI library

Published at
1/12/2025
Categories
react
news
frontend
javascript
Author
yahyamesselmi
Categories
4 categories in total
react
open
news
open
frontend
open
javascript
open
Author
13 person written this
yahyamesselmi
open
Noor JS The New JavaScript UI library

NoorJs a lightweight UI JavaScript framework designed to help you build fast, efficient, and scalable applications. NoorJs is built around the concept of First-Time-Rendering, which means your component is rendered once at the start and won't be re-rendered unless you explicitly choose to. You have full control over when and how your components are rendered, allowing for optimized performance.

Unlike other frameworks, NoorJs renders components directly to the DOM without relying on a Virtual DOM (VDOM). You can modify your component's view effortlessly by calling a simple function, without triggering a re-render.

NoorJs also introduces a powerful way to manage state. You can listen for changes to specific states and react accordingly, ensuring your components stay in sync with your data. Additionally, lifecycle functions enable you to perform tasks like data fetching or state updates at key points in your component's lifecycle.

Sharing data between components is made incredibly simple with the Channel API. Whether you're passing data to child components, parent components, or components outside of the direct scope, the Channel API allows for seamless and efficient data flow.

Continue reading these docs to explore how NoorJs can transform your approach to building modern web applications.

Key Features :

  • Lightweight Library
  • First-Time-Rendering
  • Element-Based Components
  • Direct DOM Rendering
  • Effortless View Modification
  • Powerful State Management
  • Channel API
  • Explicit Rendering Control
  • Provides modern framework feature like JSX

This's simple counter app will show you the power of NoorJs

import { createRoot, renderRoot, element, Component } from "@noorjs/core";

// app component
function App(this: Component) {
  // initializing the component by call the element plug function and setting the component HTML tag
  element("div", this);
  // setting a counter state
  const { getCounter, setCounter } = this.state(0);

  // adding an event listener to increase the counter state whenever the component is clicked
  this.setEvent("onClick", () => {
    // increasing the counter state
    setCounter((c) => c + 1);
    // rerendering the app when the counter is clicked
    this.render();
  });

  console.log("This runs once");

  // returning an arrow function that returns the JSX to be rendered
  return () => <h2>{getCount()}</h2>;
}

// creating the root
const root = createRoot();

// render the component
renderRoot(root, [<App />]);

Enter fullscreen mode Exit fullscreen mode

In this simple counter app we initialized our App component by using the element plug function then we created the counter state with 0 as initial value ,then we added an onClick event listener with setEvent function to increase the counter state and rerender the component with this.render method (This Is The Power Of NoorJs. Render It When You Need It) then we returned JSX.

NoorJs treats each component as an HTML element that you choose when you initialize your component. For more examples see the Documentation

🚧 NoorJs is still under development and it has many bugs and issues and needs your help and contributions to make it stable

Please see the Issues and get started by contributing to it

GITHUB
https://github.com/MESSELMIyahya/NoorJs

news Article's
30 articles in total
News provides up-to-date information and insights on current events, trends, and developments in various fields.
Favicon
The Ultimate PHP QR Code Library
Favicon
Image Recognition Trends for 2025
Favicon
3..2..1… AWS aterriza en México 🚀 🇲🇽
Favicon
How RapidFeedback solved my feedback problem and can help you build Better Products
Favicon
Tech Spotlight: Daily Tech News
Favicon
RCDD Certification: Fast Track to Success in Telecom Design
Favicon
Fintech Partnership Streamlines Banking Data Integrations 🚀
Favicon
2024 Product Release Highlights
Favicon
The Ultimate Guide to Trusting QuickBooks in Your Browser for Business Efficiency
Favicon
Sign up to our bug bounty platform!
Favicon
What’s Behind the U.S. Claims That TikTok Shares American User Data with China?
Favicon
Perl 🐪 Weekly #703 - Teach me some Perl!
Favicon
Discover the Best of JavaScript with Best of JS
Favicon
Men, Mental Health, and Equality: Breaking Stereotypes
Favicon
Programming and Doodles: An Introduction
Favicon
Iniciando nuevamente...
Favicon
Noor JS The New JavaScript UI library
Favicon
Exploring TypeScript Support in Node.js v23.6.0
Favicon
Chrome starts to look cute now with its new Chrome MV
Favicon
COVID-19: 5 Years Later - Is the World Ready to Combat a New Pandemic?
Favicon
Newwz.Space | 50 items of Jan 15, 2025
Favicon
Does DeepSeek contain malicious malware?
Favicon
1-Year Interior Design Course in Bangalore – Master Design Skills with Eduleem’s Expert Training
Favicon
Sample Programs Repo Celebrates 1,000 Code Snippets
Favicon
Digital Signage: Your Key to Captivating Customers
Favicon
Game Dev Digest — Issue #264 - Game Dev Insights: AI Tools, VFX, Optimization & Tutorials
Favicon
White Label Chat Platform for 2025
Favicon
🚀 I have released Eurlexa!!! EU Regulation at Your Fingertips!
Favicon
AI in Your Hands: Nvidia’s $3,000 Supercomputer Changes Everything
Favicon
Difference Between Webflow and Webflow Agency

Featured ones: