-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #621 from reactjs/sync-bbb08a5a
Sync with react.dev @ bbb08a5
- Loading branch information
Showing
94 changed files
with
1,120 additions
and
1,019 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
export const template = { | ||
'/src/index.js': { | ||
hidden: true, | ||
code: `import React, { StrictMode } from "react"; | ||
import { createRoot } from "react-dom/client"; | ||
import "./styles.css"; | ||
import App from "./App"; | ||
const root = createRoot(document.getElementById("root")); | ||
root.render( | ||
<StrictMode> | ||
<App /> | ||
</StrictMode> | ||
);`, | ||
}, | ||
'/package.json': { | ||
hidden: true, | ||
code: JSON.stringify( | ||
{ | ||
name: 'react.dev', | ||
version: '0.0.0', | ||
main: '/src/index.js', | ||
scripts: { | ||
start: 'react-scripts start', | ||
build: 'react-scripts build', | ||
test: 'react-scripts test --env=jsdom', | ||
eject: 'react-scripts eject', | ||
}, | ||
dependencies: { | ||
react: '^18.0.0', | ||
'react-dom': '^18.0.0', | ||
'react-scripts': '^5.0.0', | ||
}, | ||
}, | ||
null, | ||
2 | ||
), | ||
}, | ||
'/public/index.html': { | ||
hidden: true, | ||
code: `<!DOCTYPE html> | ||
<html lang="fr"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
</body> | ||
</html>`, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.