freeCodeCamp/curriculum/challenges/arabic/03-front-end-libraries/react/define-an-html-class-in-jsx...

909 B

id title challengeType isRequired videoUrl localeTitle
5a24c314108439a4d4036160 Define an HTML Class in JSX 6 false تحديد فئة HTML في JSX

Description

undefined

Instructions

undefined

Tests

tests:
  - text: ''
    testString: 'assert.strictEqual(JSX.type, "div", "The constant <code>JSX</code> should return a <code>div</code> element.");'
  - text: ''
    testString: 'assert.strictEqual(JSX.props.className, "myDiv", "The <code>div</code> has a class of <code>myDiv</code>.");'

Challenge Seed

const JSX = (
  <div>
    <h1>Add a class to this div</h1>
  </div>
);

After Test

console.info('after the test');

Solution

// solution required