dimanche 14 juin 2020

How can I pick a random border color in react?

I would love some help with a code I've been struggling with. I'm playing around with react trying to pick a random border color with each character I print.

This is the code:

        const style = {
        padding: '16px',
        margin: '12px',
        border: '*** I want to insert a random color in here***'
        textAlign: 'center',
        display: 'inline-block',
        transition: '0.2s ease-in',
    }

Any suggestion on what is the best clean way to do it?




Aucun commentaire:

Enregistrer un commentaire