3.3.13 • Published 2 months ago
different-roads-booking-form v3.3.13
different-roads-booking-form
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>,
)
3.3.13
2 months ago
3.3.11
2 months ago
3.3.12
2 months ago
3.3.10
3 months ago
3.3.9
3 months ago
3.3.8
3 months ago
3.3.7
3 months ago
3.3.6
3 months ago
3.3.5
3 months ago
3.3.4
3 months ago
3.3.3
3 months ago
3.3.1
3 months ago
3.3.2
3 months ago
3.2.2
4 months ago
3.3.0
4 months ago
3.2.1
11 months ago
3.1.7
12 months ago
3.1.6
12 months ago
3.1.9
12 months ago
3.1.8
12 months ago
3.1.5
1 year ago
3.1.4
1 year ago
3.1.3
1 year ago
3.1.2
1 year ago
3.1.1
1 year ago
3.2.0
1 year ago
3.1.0
1 year ago
3.0.0
1 year ago
2.1.0
1 year ago
2.0.5
1 year ago
2.0.4
1 year ago
2.0.3
1 year ago
2.0.2
1 year ago
2.0.1
1 year ago
2.0.0
1 year ago
1.0.0
1 year ago