How can I implement Jquery in a project in Meteor?

-1

I am working with React components, an example would be this NavBar template

import React from 'react';
import {Link} from 'react-router'
import { Accounts } from 'meteor/accounts-base';

export default class NavbarLanding extends React.Component {
    render() {
        return(
        <div className="navbar-landing">
            <nav>
                <div>
                        <ul className="ul-landing">
                                {/* <img src="./public/images/flat-rocket.jpg"></img> */}
                                <li className="navbar-title"><a>Landing </a></li>
                            <div className="navbar-menu">
                                <li><a>acerca</a></li>
                                <li><a>portafolio</a></li>
                                <li><a>contacto</a></li>
                                <button className="btn"onClick={() => Accounts.logout()}>Logout</button>
                            </div>
                        </ul>
                </div>
             </nav>
        </div>
        );
    };
}
//export default NavbarLanding;
NavbarLanding.reactProptype = {
    title: React.PropTypes.string.isRequired
};

How can I integrate jquery with this type of templates, or do I have to use it to include jquery functions?

    
asked by Gerardo Bautista 05.10.2017 в 18:23
source

1 answer

0

Maybe I can help you:

import * from 'jquery' as $;

Whereas jQuery installs it via NPM.

    
answered by 06.10.2017 в 15:38