2.0.2 • Published 9 years ago

hire-forms-form v2.0.2

Weekly downloads
1
License
ISC
Repository
github
Last release
9 years ago

Hire-Forms Form

React mixin for creating a HireForm.

Example

Create a component (OriginForm) and wrap it with the higher order component (form).

import React from "react";
import form from "hire-forms-form";
import Select from "hire-forms-select";

class OriginForm {
	render() {
		let model = this.props.value;

		return (
			<ul>
				<li>
					<label>Country</label>
					<Select
						onChange={this.props.onChange.bind(this, "country")}
						options={["Belgium", "Luxembourg", "The Netherlands"]}
						value={model.get("country")} />
				</li>
			</ul>
		);
	}
}

export default form(OriginForm);

Why doesn't HireForms Form use the -tag?

HireForms Form components should be able to be nested. For example when using HireForms MultiForm. It is not allowed to nest <form>s.

2.0.2

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago