Commit 6da81a16 authored by Kristian Freeman's avatar Kristian Freeman

Update css-classes exercise with more to do

parent f13fbe35
import React, { Component } from 'react'; import React, { Component } from "react";
import classnames from 'classnames'; import classnames from "classnames";
import './App.css'; import "./App.css";
class App extends Component { class App extends Component {
render() { render() {
...@@ -24,16 +24,13 @@ class App extends Component { ...@@ -24,16 +24,13 @@ class App extends Component {
* Pass this style object as the style of the p tag below. * Pass this style object as the style of the p tag below.
*/ */
/* /*
* Finally, fix the following classNames function below, * Finally, fix the following classNames function below,
* so that the properties below are true: * so that the properties below are true:
* - bg-red is true * - bg-red is true
* - largePadding is true _if_ style.lineHeight is greater than 1 * - largePadding is true _if_ style.lineHeight is greater than 1
*/ */
const divClasses = classnames({ const divClasses = classnames({});
'bg-red': false,
largePadding: style.linHeight > 1
})
return ( return (
<div className={divClasses}> <div className={divClasses}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment