Menu icon Foundation
Use Foundation, ReactJS and JQuery

Hi,

I'm using the last version of the Foundation framework in a ReactJS project, but I search another solution than react-foundation or react-foundation-components to use both of them.

So I tried tu use jquery in the main component :

componentDidMount() {
    $(document).foundation();
}

 

But I have to use this code in each component I create, so I'm here to asking if I can do that without having problems (bug or perfomance).

Thank you for your answers :)

Reactjsjquery

Hi,

I'm using the last version of the Foundation framework in a ReactJS project, but I search another solution than react-foundation or react-foundation-components to use both of them.

So I tried tu use jquery in the main component :

componentDidMount() {
    $(document).foundation();
}

 

But I have to use this code in each component I create, so I'm here to asking if I can do that without having problems (bug or perfomance).

Thank you for your answers :)

Matt Bryant 12 days ago

I'd also be interested in an solution be in