--- id: 5a24c314108439a4d4036162 title: Create a Stateless Functional Component challengeType: 6 isRequired: false videoUrl: '' localeTitle: إنشاء مكون وظيفي عديم الحالة --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: يجب على MyComponent إرجاع JSX. testString: 'assert((function() { const mockedComponent = Enzyme.mount(React.createElement(MyComponent)); return mockedComponent.length === 1; })(), "MyComponent should return JSX.");' - text: '' testString: 'assert((function() { const mockedComponent = Enzyme.mount(React.createElement(MyComponent)); return mockedComponent.children().type() === "div" })(), "MyComponent should return a div element.");' - text: يجب أن يحتوي عنصر div على سلسلة من النص. testString: 'assert((function() { const mockedComponent = Enzyme.mount(React.createElement(MyComponent)); return mockedComponent.find("div").text() !== ""; })(), "The div element should contain a string of text.");' ```
## Challenge Seed
```jsx const MyComponent = function() { // change code below this line // change code above this line } ```
### After Test
```js console.info('after the test'); ```
## Solution
```js // solution required ```