react-netlify-form
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/react-netlify-form package

0.1.1 • Public • Published

react-netlify-form

WIP

A React component to make using Netlify & React forms easier.

Installation

With npm:

npm install --save react-netlify-form

With Yarn:

yarn add react-netlify-form

Usage

With a render prop (recommended):

<NetlifyForm
	name='Contact'
	render={state => (
		<div>
			{ state.loading && 'Loading...' }
			{ state.error && 'Error.' }
			{ state.success && 'Success.' }
			<input type='text' name='Name' />
			<textarea name='Message' />
			<button>Submit</button>
		</div>
	)}
/>

Readme

Keywords

Package Sidebar

Install

npm i react-netlify-form@0.1.1

Version

0.1.1

License

MIT

Unpacked Size

251 kB

Total Files

9

Last publish

Collaborators

  • amadoa
  • dalewray
  • codevelopit
  • mastaaaron
  • escasports
  • tbaustin
  • ken85rose