Skip to content

Using react-papaparse ^4.0.0 without Typescript? #133

Answered by isaackoz
isaackoz asked this question in Q&A
Discussion options

You must be logged in to vote

Never mind, got it to work after getting a good night's sleep... My poor brain

// @ts-nocheck
import React from 'react'

import { useCSVReader } from 'react-papaparse';
import { Zone } from './CSVParse.elements';

const CSVParse = (props) => {

    const { CSVReader } = useCSVReader();

    return (
        <CSVReader
            onUploadAccepted={(results) =>{
                console.log(results);
            }}
            onDrop={null}
        >
            {({
                getRootProps,
                acceptedFile,
                ProgressBar,
                getRemoveFileProps,
                Remove,
            }) =>(
                <>
                    <Zone
               …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by isaackoz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant