different-roads-booking-form
TypeScript icon, indicating that this package has built-in type declarations

3.3.13 • Public • Published

different-roads-booking-form

NPM version Build npm-typescript License

You can clone it and step by step create your own NPM package and publish it.

Reusable form for different roads.

Installation:

npm install different-roads-booking-form --save-dev

or

yarn add -D different-roads-booking-form

Usage :

Add PassangerForm to your component:

import React from 'react'
import ReactDOM from 'react-dom/client'
import { PassangerForm, Summary, BookingFlight } from 'different-roads-booking-form'

const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
root.render(
    <React.StrictMode>
        <div>
            <PassangerForm
              setAnyError={setAnyError}
              room={room}
              roomIndex={key}
              key={'room-settting-' + key}
              updateTraveler={updateTravelerReservationsFields}
              reservationFields={reservationFields}
              travelers={state.travelers}
              submitExecute={submitExecute}
              setSubmitExecute={setSubmitExecute}
            />
            <Summary
              tour={tour}
              travelers={transformTravelers(node_travelerproduct)}
              node_deadline={orderNodeDeadline(node_deadline)}
              node_payment={node_payment}
            />
            <BookingFlight 
              flight={state.flight as Flight}
              period={state.flight?.period as Period}
            />
        </div>
    </React.StrictMode>,
)

Package Sidebar

Install

npm i different-roads-booking-form

Weekly Downloads

1

Version

3.3.13

License

MIT

Unpacked Size

5.02 MB

Total Files

177

Last publish

Collaborators

  • juan_tapias
  • sarabermudez4