Skip to content

Commit

Permalink
feat (full-stack): integrating React to FastAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
santanche committed Aug 16, 2024
1 parent 6306d60 commit 1a08540
Show file tree
Hide file tree
Showing 48 changed files with 18,807 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frameworks/npm/npm/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions frameworks/react/1-basic/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>React App</title>
</head>
<body>
<div id="root"></div>

<script src="https://unpkg.com/react/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>

<script type="text/babel">
const { createRoot } = ReactDOM;
const root = createRoot(document.getElementById('root'));
root.render(
<button>Hello React!</button>
);
</script>
</body>
</html>
12 changes: 12 additions & 0 deletions frameworks/react/2-js/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>React App</title>
</head>
<body>
<div id="root"></div>
<script src="src/script.jsx" type="module"></script>
</body>
</html>
Loading

0 comments on commit 1a08540

Please sign in to comment.