# Get started with jComponent 20

> Load the jComponent bundle, set a value in the global state and show it with a ui-bind element.

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: en
Content-SHA256: d000a133f8599ffc3236793b3d02f382adbbf017f136adfafbc88bff4f39c05d
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: jcomponent20@3fedd009a277f50fddc608b97afbec553b67c51b
Review: not-recorded

jComponent 20 is a single file (`spa.min@20.js`) that already contains jQuery. It keeps a global **state** object: you write to it with `SET(path, value)`, read from it with `GET(path)`, and elements react to changes. The bundle also has a stylesheet, `spa.min@20.css`, with the Total.js icon font. Load both from the CDN, as every example of this site does: `<script src="//cdn.componentator.com/spa.min@20.js"></script>` and `<link rel="stylesheet" href="//cdn.componentator.com/spa.min@20.css" />`. If you only want the icons, load just `//cdn.componentator.com/icons.min.css` (no script is needed). The checks of this site answer the requests for `spa.min@20.js` and `spa.min@20.css` with a local copy of the same version and do not load the icons file.

`<ui-bind>` binds an element to a path in the state. The `config` attribute lists commands separated by semicolons; `text:value` sets the text of the element to the value of the path.

```html public/index.html
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<title>jComponent</title>
	<link rel="stylesheet" href="//cdn.componentator.com/spa.min@20.css" />
	<script src="//cdn.componentator.com/spa.min@20.js"></script>
</head>
<body>

	<h1>Hello <ui-bind path="user.name" config="text:value"></ui-bind></h1>

	<script>
		SET('user.name', 'Peter');
	</script>

</body>
</html>
```

Call `SET('user.name', 'Louis')` again and the heading changes without any DOM code of yours.
