Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Property 'showURLQueryString' does not exist on type 'typeof import("querystring-reader")'. TS2339
- /// <reference types="node" />
- declare module 'querystring-reader' {
- export interface Main {
- showURLQueryString(): object
- }
- }
- import React, { useEffect} from 'react';
- import querystringreader from 'querystring-reader';
- interface IContactProps {
- }
- const Contact: React.FunctionComponent<IContactProps> = (props) => {
- useEffect(() => {
- console.log('qs', querystringreader.showURLQueryString());
- return () => {
- console.log('page CONTACT - unload ')
- }
- },[])
- return (
- <MainTmpl>
- contactPage
- <ContactForm />
- </MainTmpl>);
- };
- export default Contact;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement