css border jsx 1

css border jsx

const styles = {
        border: '1px solid red', 
   };

// Values must all be in quotes

Here is what the above code is Doing:
1. We’re creating a variable called styles.
2. We’re setting styles equal to an object.
3. The object has two keys, border and color.
4. The border key has a value of 1px solid red.
5. The color key has a value of blue.
6. We’re using the styles variable on line 8 to give the div a border and blue text.

Similar Posts