fix: build issue with "React is not defined"

This commit is contained in:
Divlo
2022-04-07 11:37:42 +02:00
parent 686b5643b3
commit 8cbe5c3bf2
6 changed files with 3 additions and 8 deletions

View File

@ -1,3 +1,4 @@
import React from 'react'
import { render, cleanup, fireEvent } from '@testing-library/react'
import { Form, HandleForm } from '..'

View File

@ -1,3 +0,0 @@
import React from 'react'
global.React = React

View File

@ -1,4 +1,4 @@
import { useRef } from 'react'
import React, { useRef } from 'react'
export interface FormDataObject {
[key: string]: FormDataEntryValue