├── src
├── App.css
├── main.jsx
├── index.css
├── assets
│ └── react.svg
└── App.jsx
├── vite.config.js
├── .gitignore
├── index.html
├── README.md
├── package.json
└── public
└── vite.svg
/src/App.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main.jsx:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import ReactDOM from 'react-dom/client'
3 | import App from './App'
4 | import './index.css'
5 |
6 | ReactDOM.createRoot(document.getElementById('root')).render(
7 |
8 |
9 | ,
10 | )
11 |
--------------------------------------------------------------------------------
/vite.config.js:
--------------------------------------------------------------------------------
1 | import { defineConfig } from 'vite'
2 | import react from '@vitejs/plugin-react'
3 |
4 | // https://vitejs.dev/config/
5 | export default defineConfig({
6 | plugins: [react()],
7 | base: process.env.NODE_ENV !== 'development' ? '/react-hook-form-tutorial/' : '/',
8 | })
9 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | pnpm-debug.log*
8 | lerna-debug.log*
9 |
10 | node_modules
11 | dist
12 | dist-ssr
13 | *.local
14 |
15 | # Editor directories and files
16 | .vscode/*
17 | !.vscode/extensions.json
18 | .idea
19 | .DS_Store
20 | *.suo
21 | *.ntvs*
22 | *.njsproj
23 | *.sln
24 | *.sw?
25 |
--------------------------------------------------------------------------------
/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | background: #101010;
3 | color: white;
4 | display: flex;
5 | justify-content: center;
6 | align-items: center;
7 | min-height: 100vh;
8 | }
9 |
10 | label {
11 | display: block;
12 | }
13 |
14 | span {
15 | display: block;
16 | color: tomato;
17 | font-size: x-small;
18 | }
19 |
20 | input {
21 | margin-bottom: .3rem;
22 | }
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
206 | );
207 | }
208 |
209 | export default Formulario;
210 |
--------------------------------------------------------------------------------