Error: Target container is not a DOM element


  <div className="icons-list">

    <HomeOutlined />

    <SettingFilled />

    <SmileOutlined />

    <SyncOutlined spin />

    <SmileOutlined rotate={180} />

    <LoadingOutlined />

    <SearchOutlined />

    <UserOutlined />




maybe try wrapping them all in a single component and just rendering that?

Hello! Welcome to the community :partying_face:!

I’ve edited your code for readability.

In the future, whenever you paste code on the forum use back ticks to surround it and format it, like this:

// Your code here


I’m guessing either you do not have an element with the container id, or React is loaded and run before the DOM is ready (e.g. loaded at the top and executed before the HTML content has loaded).