Animal Fun Facts stape 6

hey,
I’m stuck on stape 6.
I have the same code of video but there is nothing print un the console.
My code

import { animals } from './animals';

import React form 'react';

import { createRoot } from 'react-dom/client';

const container = document.getElementById('app');

const root = createRoot(container);

const title = '';

const animalFacts = <h1>{title === ''? 'Click an animal for a fun fact!' : title}</h1>>;

root.render(animalFacts);

The localhots:8000 stay empty in my space.
I have read again and again my code, and i just burn my eyes :slight_smile:

What i do wrong ?

Tx

This is a syntax error, maybe that’s the cause.

1 Like

Good eyes :slight_smile:
Thanks.
But it doesn’t work without the > . :frowning:

As mirja_t pointed out, the closing tag needs to be fixed.

Also,

// You wrote:
import React form 'react';

// It should be:
import React from 'react';
1 Like

waoo !!! pfff i am so tired !!! :slight_smile:

tx a lot
it works !!!

1 Like