:cookie: 113 | @sarkioja |http://www.freecodecamp.com/sarkioja
@leanjunio Additionally, props are meant more to inform the component on how to behave, whereas state has to do more with, well, the state of the application, ie things are likely to change as the user interacts with them.
A basic example of how props would be used where state is not would be if you create a button component that could be any color. Maybe you pass the color as a prop when creating a form. Not a great example but hopefully you get the idea :+1:
https://codepen.io/rodchsm/pen/POmBje
Does anyone know why I cant get three images across the webpage and the text under the image to center?
@rodchsm this css:
.featuredimage {
text-decoration: none;
vertical-align: bottom;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.featuredimage a{
flex-basis: 33%;
text-align: center;
}
.featuredimage a img {
border: 1px solid #000000;
width: 30%;
margin-right: 1%;
clear: right;
border-radius: 5px;
margin-left: 2%;
/* float: left; */
/* display: block; */
}
will help you have them as you want