Skip to content

Commit

Permalink
feat(examples): add react-hook-form example & update formik example
Browse files Browse the repository at this point in the history
  • Loading branch information
dpellier committed Nov 28, 2024
1 parent 8525df8 commit 570a4ac
Show file tree
Hide file tree
Showing 7 changed files with 650 additions and 195 deletions.
1 change: 1 addition & 0 deletions packages/examples/react-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"formik": "2.4.6",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "7.53.2",
"react-router": "6.27.0",
"yup": "1.4.0"
},
Expand Down
8 changes: 5 additions & 3 deletions packages/examples/react-webpack/src/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import React, { type ReactElement } from 'react';
import styles from './app.scss';
// import { Gallery } from './components/gallery/Gallery';
// import { FormFormik } from './components/formFormik/FormFormik';
import { FormNative } from './components/formNative/FormNative';
import { FormHookForm } from './components/formHookForm/FormHookForm';
// import { FormNative } from './components/formNative/FormNative';
// import { TestModal } from './components/testModal/TestModal';
// import { TestSelect } from './components/testSelect/TestSelect';

Expand All @@ -12,9 +13,10 @@ import { FormNative } from './components/formNative/FormNative';
function App(): ReactElement {
return (
<div className={ styles.app }>
{/* <Gallery /> */}
{/*<Gallery />*/}
{/*<FormFormik />*/}
<FormNative />
<FormHookForm />
{/*<FormNative />*/}
{/*<QueryClientProvider client={queryClient}>*/}
{/* <TestSelect />*/}
{/*</QueryClientProvider>*/}
Expand Down
Loading

0 comments on commit 570a4ac

Please sign in to comment.