Jquery in React is not defined

Hi I just want to receive ajax request, but the problem is that jquery is not defined in React. React version is 14.0

Error message

 Uncaught ReferenceError: $ is not defined

I have two files :


import React from 'react'; 
import { render } from 'react-dom';
import App from './containers/App';  

const root = document.getElementById('root');  

  <App source='https://api.github.com/users/octocat/gists' />, 


import React, { Component } from 'react';

export default class App extends Component {

    componentDidMount() {
        const { source } = this.props;

        console.log($); // throws error

    render() {
        return (
            <h1>Hey there.</h1>

62 thoughts on “Jquery in React is not defined”

Leave a Comment