Hello,
I am stuck at step 6 for the Animal fun facts projectt - nothing is rendering and I’ve followed the walkthrough video. I’ve searched this forum for help and it seems others are having a similar problem but I’ve not found a fix yet? Please see my code (as of step 6) below:
import { animals } from './animals';
import React from '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});
You must select a tag to post in this category. Please find the tag relating to the section of the course you are on
When you ask a question, don’t forget to include a link to the exercise or project you’re dealing with!
If you want to have the best chances of getting a useful answer quickly, make sure you follow our guidelines about how to ask a good question. That way you’ll be helping everyone – helping people to answer your question and helping others who are stuck to find the question and answer!