- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13
Creating Box #481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating Box #481
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Box objects will have rounded corners and spaces; added null op; dynamic height and width updated. App now has 4 boxes of different colors
| New commit with requested changes and some style updates | 
| height: props.height ?? 100, | ||
| width: props.width ?? 100, | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine, but as mentioned in another comment I assume we're not going to vary the box sizes arbitrarily. As such, by making these not props, we can guarantee that every instance of Box is the same size.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Saw that you did this for practice -- sounds good for now though I think you'll get plenty of practice regardless!)
Co-authored-by: Miorel-Lucian Palii <[email protected]>
No description provided.