Braintree DropIn not showing in Add to chart page. Can you please review this code. code is given below.
`import React,{ useEffect, useState } from "react";
import { Link } from "react-router-dom";
import { isAuthenticated } from "../auth";
import {getBrainTreeClientToken} from './apiCore'
import DropIn from "braintree-web-drop-in-react";
import 'braintree-web'
Braintree DropIn not showing in Add to chart page. Can you please review this code. code is given below. `import React,{ useEffect, useState } from "react"; import { Link } from "react-router-dom"; import { isAuthenticated } from "../auth"; import {getBrainTreeClientToken} from './apiCore' import DropIn from "braintree-web-drop-in-react"; import 'braintree-web'
const Checkout=({products})=>{ const [data, setData]=useState({ success:false, clientToken:null, error:'', instance:{}, address:'' }) const userId=isAuthenticated()&& isAuthenticated().user._id; const token=isAuthenticated()&& isAuthenticated().token
} export default Checkout`