binding-blocks
TypeScript icon, indicating that this package has built-in type declarations

0.0.25 • Public • Published

Binding Blocks

React 2-way data binding to easily manage complex forms and data structures.

npm package Travis Coveralls CodeFactor BCH compliance Discord


Install

$ npm i binding-blocks

Usage

import { Binding, Value } from 'binding-blocks';
 
const someData = {
  title: 'Hello',
  subtitle: 'World!'
};
 
const HelloWorld = () => {
  return (
    <Binding data={someData}>
      <h1><Value name="title" /></h1>
      <h3><Value name="subtitle" /></h3>
    </Binding>
  );
}

Docs

To start data binding with React, visit https://staydistributed.github.io/binding-blocks/

Package Sidebar

Install

npm i binding-blocks

Weekly Downloads

0

Version

0.0.25

License

ISC

Unpacked Size

113 kB

Total Files

28

Last publish

Collaborators

  • slv