![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@korautils/forms
Advanced tools
![image](https://github.com/user-attachments/assets/ccad1514-7b15-4952-9856-fd03b971403a)
@korautils/forms is a library designed to provide an efficient and versatile solution for creating dynamic forms with advanced design patterns. It implements patterns such as Builder, Observer, and Factory, allowing you to centralize component logic, simplify integration, and maximize reusability in projects that require an agile and adaptable approach.
With @korautils/forms, you can generate complex forms intuitively, maintain clean and organized code, and quickly adapt them to your project's changing needs. The library includes tools to manage the state of child components created with ElementBuilder, as well as to configure and apply validations flexibly.
Additionally, @korautils/forms makes it easy to integrate with APIs, allowing you to define configurations such as the URL, HTTP method, and other necessary parameters. You only need to add the required fields, and this tool will handle sending the data to the specified API, optimizing your development flow.
You can see a live demo of @korautils/forms in action by visiting the following link:
Demo Link
⚠️ This library is in alpha phase. It is currently in a testing stage, which means that:
If you decide to try this version, we would greatly appreciate your feedback, suggestions, or bug reports in the Issues section. Your feedback helps us improve!
This project is in its early stages 🚀. I have gathered some components that I commonly use in all my projects to simplify the creation of dynamic forms. As mentioned at the beginning of the README, this is just the beginning. I'm working on this in my free time, so please be patient as I continue improving the library.
Constructive criticism is always welcome, and if you're interested in collaborating, you are very welcome. I am open to receiving all the help I can get, whether it's ideas, bug fixes, or improvements.
If you're interested in contributing to the development of @korautils/forms, it would be awesome to have your help! You can contribute in the following ways:
If you'd like to contribute to the project, follow these steps:
Thanks for considering contributing to @korautils/forms! Your collaboration is key to making this library even better.
To install this alpha version, run:
$ npm install @korautils/forms
import './App.css'
import { Fragment } from 'react/jsx-runtime'
import { FormBuilder, ElementBuilder, FormHandlerProps } from '@korautils/forms'
function App() {
return (
<Fragment>
<h2>Test FormBuilder - @korautils/forms</h2>
<div
style={{
width: '100%',
display: 'block',
backgroundColor: '#f4f4f4',
padding: '20px',
}}
>
{
// Instantiates a new form...
FormBuilder.newForm()
// Sets the grid columns
.setCols(3)
// Configures the endpoint for HTTP requests
.setApi({
method: 'POST',
url: 'https://localhost:8000',
})
// Adds a text field for entering the full name
.addItem(
ElementBuilder.newElement()
.textField({
name: 'fullname',
label: 'Full name',
})
.addValidation({
type: 'string',
required: { value: true, message: 'Full name is required' },
})
)
// Adds a text field for entering the username
.addItem(
ElementBuilder.newElement().textField({
name: 'username',
label: 'Username',
})
)
// Adds a text field for entering an email with format validation
.addItem(
ElementBuilder.newElement()
.textField({
name: 'email',
label: 'Email',
})
.addValidation({
type: 'string',
isEmail: { value: true },
})
)
// Adds a select field with predefined static options
.addItem(
ElementBuilder.newElement().select({
name: 'select',
label: 'Static options',
options: [
{ label: 'Static Option 1', value: 'option1' },
{ label: 'Static Option 2', value: 'option2' },
],
})
)
// Adds a dynamic select field that fetches its options from an API
.addItem(
ElementBuilder.newElement().select({
name: 'select',
label: 'Dynamic options',
api: {
method: 'GET',
url: 'https://jsonplaceholder.typicode.com/todos/',
responseType: 'json',
},
renderProps: { label: '[0].title', value: '[0].id' },
})
)
// Adds a button
.addItem(
ElementBuilder.newElement().button({
type: 'submit',
name: 'button',
label: 'Send',
})
)
// Adds a custom component
.addItem(
ElementBuilder.newElement()
.setFullWidth()
.box({
children: <CustomComponent />,
})
)
.build()
}
</div>
</Fragment>
)
}
// The custom component receives an optional formHandler
// to manage and synchronize the global form state.
const CustomComponent: React.FC<{ formHandler?: FormHandlerProps }> = ({
formHandler = {},
}) => {
const { watch } = formHandler
const fullname = watch ? watch('fullname') : ''
return (
<div
className='custom-content'
style={{
display: 'flex',
flexDirection: 'column',
gap: 10,
color: '#333',
}}
>
{fullname && <span>Hi, {fullname}!</span>}
<hr style={{ width: '100%' }} />
<span>Done with love ♥️</span>
</div>
)
}
export default App
FAQs
![image](https://github.com/user-attachments/assets/ccad1514-7b15-4952-9856-fd03b971403a)
The npm package @korautils/forms receives a total of 1 weekly downloads. As such, @korautils/forms popularity was classified as not popular.
We found that @korautils/forms demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.