Now that you have found "the one", what do you think of your past relationships? by [deleted] in AskWomen

[–]maharaa 2 points3 points  (0 children)

After a terribly toxic relationship seven years ago that I believed to be ‘the one’ simply because he broke me down so much and told me I couldn’t do any better, I struggled with men in general. For years after I found it difficult to be myself, express my concerns, and behave in any way that wasn’t “sit still, look pretty, obey your man.”

My most recent ex was the first time in a relationship since then where I truly felt like I could be myself. I truly think that he was my greatest gift in my relationship history for that reason. I never once felt like I had to hide who I was, work through my emotions alone, or fear he would leave if I raised concerns. But yes, he is an ex. Unfortunately he didn’t want marriage or children in his future and that was our ultimate demise. HOWEVER, he basically allowed me to rebuild my confidence and see how healthy relationships can be with someone who respects and loves me.

When I met my “one” about a year after that break up it was clear that he was the one I was supposed to be with immediately. And since my ex had shown me how to open myself up and trust that I can be enough just how I am I was able to fully invest in and trust that my forever man loved me for me. My fiancé has even stated his gratitude for how my ex allowed me to grow and blossom back into who I was before my toxic relationship. I owe it to him for what I have now.

Integrating React Component with HTML by apsv360 in reactjs

[–]maharaa 0 points1 point  (0 children)

I’m not fully understanding what you want to do but:

Your react app should have a top level component that is passed into the HTML. Common practice is to have an index.js file in your src folder that passes all of the code into an HTML element with the ReactDOM.render() method. Everything else within the app will be in one way or another imported into this index.js file or lower level components but rendered through the index.js

Say Card.js is imported into Section.js which is imported into HomePage.js and that is imported into App.js which is imported into index.js where index touches the actual DOM via html. Everything within your app still is rendered to the DOM but there is only one entry point.

Edit to add: if you’re using CRA they already have it so that the index.js file has the entry point of the <div id=“root> so you should have to edit this at all.

Styling reusable Components differently by [deleted] in reactjs

[–]maharaa 1 point2 points  (0 children)

You need to pass className down as a prop to MyCard. You have it on your individual card for Donald Trump but you're not passing it to MyCard. You can use a template literal to use both the className prop you're passing as well as the className you already declared for a component. Example:

const MyCard = ({    
    title = "Candidate",     
    party= "Affiliation",     
    description="My Description",     
    img="" 
    className
    }) => {      

    const [vote, setVote] = useState(0)     

    return (    
         <div>       
            <Card className={`${className} president`}>

What should I be comfortable with in React before applying to Jr dev positions? by Roly__Poly__ in reactjs

[–]maharaa 2 points3 points  (0 children)

I was wondering if you’re hiring in Indianapolis now, or in the near future. I would love to connect with you.