2.1.1 • Published 3 years ago

widgets-for-react v2.1.1

Weekly downloads
432
License
ISC
Repository
-
Last release
3 years ago

Widgets for React

The widget library allows developers to quickly develop composable and reusable React components by defining a common interface for passing data across different modules of an application.

Installation

You can install with npm install widgets-for-react or yarn add widgets-for-react.

Basic usage

You can create a hello world widget application as follows\:

let hello_world_app =
  stateful<string>()(s =>
    div<string>({ className:"form-group" })(
      label<string>("Type text here", { htmlFor:"main-input", label_position: "before" })(
        div<string>({ className:"input-group" })(
          string({ id:"main-input", className:"form-control" })(s)
        )
      )
    )
  )("Hello world!")

Widgets have a run method which can be invoked in order to embed the widget in a normal React application, as follows\:

<div>
  { hello_world_app.run(res =>
    console.log("The widget has produced some output data", res)) }
</div>
2.1.1

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.7.1

4 years ago

1.5.7

4 years ago

1.7.0

5 years ago

1.6.0

5 years ago

1.5.6

5 years ago

1.5.5

5 years ago

1.5.4

5 years ago

1.5.3

5 years ago

1.5.2

5 years ago

1.5.1

5 years ago

1.5.1-rc6

5 years ago

1.5.1-rc5

5 years ago

1.5.1-rc4

5 years ago

1.5.1-rc3

5 years ago

1.5.1-rc2

5 years ago

1.5.1-rc1

5 years ago

1.5.0

5 years ago

1.5.0-rc1

5 years ago

1.4.0

5 years ago

1.3.1

5 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.0.12

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago