Skip to content

Commit ce1c0b3

Browse files
committed
upd
1 parent ecd108a commit ce1c0b3

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

src/overview/relation/mxml.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,22 @@ var theme:Theme;
9090

9191
## Capture safety
9292

93-
Unlike in React.js combined with TypeScript, states, references and context reflections are captured by reference from nested functions, guaranteeing the "outdated" value of, say, a state, is never captured, which facilitates development by requiring no additional reference declaration.
93+
Unlike in React.js combined with TypeScript, states, references and context reflections are captured by reference from nested functions, guaranteeing the "outdated" value of, say, a state, is never captured, which facilitates development by requiring no additional reference declaration.
94+
95+
## Styling
96+
97+
Unlike with React.js, there is built-in support for linking style sheets in a Spot component.
98+
99+
```
100+
<j:Container>
101+
<j:Style>
102+
<![CDATA[
103+
:host {
104+
background: red;
105+
}
106+
]]>
107+
</j:Style>
108+
</j:Container>
109+
```
110+
111+
[More on style sheets](../xml-capabilities/jet.md#linking-cascading-style-sheets)

0 commit comments

Comments
 (0)