LOGO

San

A fast, portable, flexible JavaScript component framework

Get Started
Features Resources Facilities 中文
HTML Template

Declarative template. HTML conformant template makes it easier for HTML developers.

Data Driven

The DOM will be updated accordingly by the view engine upon any data modification. Free yourself from trivial and error-prone DOM APIs.

Component

A component is a combination of data, logic and view. Feature blocks, from a single input combination to a whole page, can be built via San components.

High Performance View

By modifying the data, the view engine can directly refresh the view area that needs to be changed without any detection and better performance.

Component Reversion

Optimized for the first screen and output HTML from the server side. Reverse parse components from existing elements and build bindings.

Small Size

Volume less that 17kb (gzipped), no need to worry about the burden of page downloads. The gospel of patients with volume obsessive.

Good Compatibility

Another benefit of modifying data by method is that you can get better browser compatibility. After all, some users of our products are a bit rigid.

Flexible Module Management

The ESNext Module or AMD can be selected in the project. Of course, if you want to use global variables it is also supported.

Convenient Reference

Support for multiple methods such as NPM, GitHub, download, HTTP and HTTPS CDN, making development and online reference more convenient.


Resources

Tutorials, documents and demos to understand and use San.

Tutorial

Reading the tutorials is a good starting point to learn San.

Practice

Practice guidelines suggest specific ways to deal with many different situations.

Example

Real-world demos showing how to use San.

Component API

Refer to this when you're looking for Component API manuals.


Facilities

Some tools and libraries can help you build your app faster and easier.

santd
Router

Support for hash and html5 mode routes to build SPA or isomorphism web applications.

SSR

Server-Side Render framework and utils.

Factory

Component register and instantiation.

Store

Application state management suite, the idea is a one-way flow like flux.

Update

Immutable's object update library, with san-store for application state data updates.

Composition

The composition API helps us collocate code related to the same logical concern.

CLI

A CommandLine tooling for rapid development.

Loader

Webpack loader for single-file San components.

DevTools

Developer tools based on Chrome extensions.

TestUtils

Unit testing utility library.

ANodeUtils

Util Functions for ANode.

Sanny

VSCode extension.

san-mui
© 2023 Baidu EFE