Learn the fundamentals and advanced patterns of users.js with practical examples, guides, and API references.
usersjs(() => {
input.text('Hello', { class: 'p-3 rounded bg-white' }),
button('Submit', {
onClick: () => alert('Sent!')
})
});
Start building apps with users.js in just a few minutes using our simple setup instructions.
npx degit usersjs/usersjs-boilerplate my-app
Create a new project folder from our ready-made template.
cd my-app
npm start
Launch the development server and begin building your app.
users.js introduces a modern approach to JavaScript development with simple yet powerful constructs.
State changes automatically update the UI. users.js uses a declarative model to simplify data flow.
let count = 0;
usersjs(() => {
div(() => {
text(`Count: ${count}`);
button('Increment', {
onClick: () => count++
});
});
});
Build encapsulated components with their own logic and styles using users.js's modular system.
const MyButton = (props) => {
return button(props.text, {
onClick: props.onClick
});
};
Comprehensive documentation of all methods and utilities available in users.js
Main entry point for creating user interfaces.
Create input fields with validation and binding.
Create buttons with event handlers and styling.
Level up your skills with expert strategies for building performant applications.