You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
453 B
JavaScript
17 lines
453 B
JavaScript
5 years ago
|
import React from 'react'
|
||
|
|
||
|
import {FormController, Input} from '~/components/form'
|
||
|
|
||
|
const Index = () => (
|
||
|
<>
|
||
|
<h1>Form Controller Test</h1>
|
||
|
<FormController onSubmit={console.log}>
|
||
|
<Input type="password" name="password" validate={value=>(value.length >= 8)} initialValue="" />
|
||
|
</FormController>
|
||
|
</>
|
||
|
)
|
||
|
export default Index
|
||
|
|
||
|
// Help Almyki figure out how to do 4 spaces python, 2 spaces html
|
||
|
// also show her how to add a vertical bar
|