Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bw-bestperf
SAM
Commits
426edb2e
Commit
426edb2e
authored
Apr 11, 2023
by
Nikhila Ravi
Browse files
Add mini web demo
parent
7fa17d78
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
0 deletions
+41
-0
demo/src/index.tsx
demo/src/index.tsx
+11
-0
demo/tailwind.config.js
demo/tailwind.config.js
+6
-0
demo/tsconfig.json
demo/tsconfig.json
+24
-0
No files found.
demo/src/index.tsx
0 → 100644
View file @
426edb2e
import
*
as
React
from
"
react
"
;
import
{
createRoot
}
from
"
react-dom/client
"
;
import
AppContextProvider
from
"
./components/hooks/context
"
;
import
App
from
"
./App
"
;
const
container
=
document
.
getElementById
(
"
root
"
);
const
root
=
createRoot
(
container
!
);
root
.
render
(
<
AppContextProvider
>
<
App
/>
</
AppContextProvider
>
);
demo/tailwind.config.js
0 → 100644
View file @
426edb2e
/** @type {import('tailwindcss').Config} */
module
.
exports
=
{
content
:
[
"
./src/**/*.{html,js,tsx}
"
],
theme
:
{},
plugins
:
[],
};
demo/tsconfig.json
0 → 100644
View file @
426edb2e
{
"compilerOptions"
:
{
"lib"
:
[
"dom"
,
"dom.iterable"
,
"esnext"
],
"allowJs"
:
true
,
"skipLibCheck"
:
true
,
"strict"
:
true
,
"forceConsistentCasingInFileNames"
:
true
,
"noEmit"
:
false
,
"esModuleInterop"
:
true
,
"module"
:
"esnext"
,
"moduleResolution"
:
"node"
,
"resolveJsonModule"
:
true
,
"isolatedModules"
:
true
,
"jsx"
:
"react"
,
"incremental"
:
true
,
"target"
:
"ESNext"
,
"useDefineForClassFields"
:
true
,
"allowSyntheticDefaultImports"
:
true
,
"outDir"
:
"./dist/"
,
"sourceMap"
:
true
},
"include"
:
[
"next-env.d.ts"
,
"**/*.ts"
,
"**/*.tsx"
,
"src"
],
"exclude"
:
[
"node_modules"
]
}
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment