An open API service indexing awesome lists of open source software.

https://github.com/al3xdiaz/form-with-state

this is a project for manage the react js state in a form, (width override methods)
https://github.com/al3xdiaz/form-with-state

react-state reactjs typescript-library

Last synced: 21 days ago
JSON representation

this is a project for manage the react js state in a form, (width override methods)

Awesome Lists containing this project

README

        

# Form lite
## usage

```ts
import React from "react"
import Form from "form-with-state"
import styled from "styled-components"

const Container = styled.div`
& form{
display: grid;
grid-gap: 1rem;
/* for use grid template areas use "name" property of form item */
grid-template-areas:
"firstName LastName"
"submit submit";
}
`

export const App = ()=>{
return (

console.log(data)}>





)
}
/*
Display
| firstName | lastName |
| Submit |
*/
/*
console log:
{
"firstName" : "",
"lastName" : ""
}
*/
```