File tree Expand file tree Collapse file tree 6 files changed +42
-32
lines changed
apps/top-flex-box-example Expand file tree Collapse file tree 6 files changed +42
-32
lines changed Original file line number Diff line number Diff line change 11{
2- "extends" : " ../../.eslintrc.json" ,
3- "parserOptions" : {
4- "sourceType" : " module" ,
5- "ecmaVersion" : 2018 ,
6- "ecmaFeatures" : {
7- "jsx" : true
8- }
2+ "extends" : [" plugin:react/recommended" ],
3+ "parserOptions" : {
4+ "sourceType" : " module" ,
5+ "ecmaVersion" : 2018 ,
6+ "ecmaFeatures" : {
7+ "jsx" : true
98 }
10- }
9+ },
10+ "settings" : {
11+ "react" : {
12+ "version" : " detect"
13+ }
14+ }
15+ }
Original file line number Diff line number Diff line change 2323 " last 1 firefox version" ,
2424 " last 1 safari version"
2525 ]
26+ },
27+ "devDependencies" : {
28+ "eslint-plugin-react" : " ^7.33.2"
2629 }
2730}
Original file line number Diff line number Diff line change 1- import { Sandpack } from "@codesandbox/sandpack-react"
1+ import { React } from 'react' ;
2+ import { Sandpack } from '@codesandbox/sandpack-react' ;
23
34function App ( ) {
45 return (
5- < Sandpack
6- files = { {
7- " styles.css" : {
8- active : true ,
9- code : `
6+ < Sandpack
7+ files = { {
8+ ' styles.css' : {
9+ active : true ,
10+ code : `
1011.flex-container {
1112 /* display: flex; */
1213 gap: 12px;
@@ -20,9 +21,9 @@ function App() {
2021 /* flex: 1; */
2122}
2223 `
23- } ,
24- " index.html" : {
25- code : `
24+ } ,
25+ ' index.html' : {
26+ code : `
2627<!DOCTYPE html>
2728<html lang="en">
2829<head>
@@ -39,14 +40,14 @@ function App() {
3940 </div>
4041</body>
4142</html>`
42- } ,
43- } }
44- options = { {
45- editorHeight : " 100vh" ,
46- } }
47- theme = { 'dark' }
48- template = " static"
49- />
43+ }
44+ } }
45+ options = { {
46+ editorHeight : ' 100vh'
47+ } }
48+ theme = { 'dark' }
49+ template = ' static'
50+ />
5051 ) ;
5152}
5253
Original file line number Diff line number Diff line change 11# editor {
2- height : 100% ;
3- width : 100% ;
2+ height : 100% ;
3+ width : 100% ;
44}
55
66body {
7- margin : 0 ;
8- padding : 0 ;
9- }
7+ margin : 0 ;
8+ padding : 0 ;
9+ }
Original file line number Diff line number Diff line change @@ -9,5 +9,3 @@ root.render(
99 < App />
1010 </ React . StrictMode >
1111) ;
12-
13-
You can’t perform that action at this time.
0 commit comments