0
我的反應網站有問題。 我有我出口反應在進口分類後放一些道具
class Input extends React.Component {
render() {
const CustomMapping = [
['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'],
['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', '@'],
['z', 'x', 'c', 'v', 'b', 'n', 'm', '.com']
];
return (
<KeyboardedInput
enabled
type={this.props.type}
value={this.props.value}
name={this.props.name}
defaultKeyboard={CustomMapping}
/>
);
}
}
export default Input;
一類,我將其導入以其他文件,我不知道我怎麼可以添加一些道具來完成它。
請幫幫我! :) 有一個良好的白天或晚上;)
感謝對我的幫助瞭解如何添加額外的道具。 – victorfau