Trying to understand code here, and I find that the Javascript is defying my ability to translate to Clojure[script]:
I find the following code and don’t understand the use of curly brackets.
Q1: What is the leftIcon={{...}}
doing, and how is it different than just using one pair of braces to define an object?
Q2: What is size={24}
doing? If destructuring, what is it destructuring?
<Input
placeholder='INPUT WITH ICON'
leftIcon={{ type: 'font-awesome', name: 'chevron-left' }}
/>
<Input
placeholder='INPUT WITH CUSTOM ICON'
leftIcon={
<Icon
name='user'
size={24}
color='black'
/>
}
/>
I’ve got the dependencies working ok, but any suggestions on how to translate the rest of these things in my Renatal app?