Answer the question
In order to leave comments, you need to log in
How to insert value into react-input-mask?
I want to pass a substitution value to my form:
= react_component "PhoneInput/PhoneInput", {value: @user.phone, name: 'user[phone]'}
const PhoneInput = ({ name, value }) => (
<InputMask mask="+7 (999) 999 99 99" name={name} value={value} required className="input" />
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question