IF
Size: a a a
IF
IF
IF
// helpers.ts
export const checkActiveNodeByUrl = (node: NavNode) : boolean => {...}
// partials.ts
import {checkActiveNodeByUrl} from "./helpers";
IF
{
"compilerOptions": {
"allowJs": true,
"target": "esnext",
"module": "esnext",
"strict": true,
"jsx": "preserve",
"moduleResolution": "node",
"baseUrl": ".",
"paths": {
"@src/*": ["./resources/src/*"]
}
},
"exclude": [],
"include": [
"./resources/src/**/*"
]
}IF
IF
IF
DS
// styles.ts
const styles: any = {
foo: {
color: "black"
}
}
// component.tsx
/** @jsx jsx */
import {jsx} from "@emotion/react";
import {styles} from "./styles.ts"
const FooCompoent = ()=>(
<div css={{styles.foo}}>
</div>
)
˸A
Т
// styles.ts
const styles: any = {
foo: {
color: "black"
}
}
// component.tsx
/** @jsx jsx */
import {jsx} from "@emotion/react";
import {styles} from "./styles.ts"
const FooCompoent = ()=>(
<div css={{styles.foo}}>
</div>
)
DS
MK
// styles.ts
const styles: any = {
foo: {
color: "black"
}
}
// component.tsx
/** @jsx jsx */
import {jsx} from "@emotion/react";
import {styles} from "./styles.ts"
const FooCompoent = ()=>(
<div css={{styles.foo}}>
</div>
)
Т
MK
DS
DS
Т
DP
MK