Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

217
Views
How to fetch inputed data from state hooks of my input js file from my search js file in react

this is how ive set up my search js file to search through the api data but i want to call my inputted data as well so i can search for both. the way its set up right now is that there is an api woth an array of objects each data has the name, email etc and this calls this so under each one i have my a search bar to input my data and can input as many tags as i want for each. Now i just want to call the hook state data into this js file to search but im not sure how to do it, any help would be appreciated.

class Search extends Component {
    constructor(props, tag) {
        super(props);
        this.state = { 
            searchString: "",
            searchTagString: "",
            data: [],
            //tags: tag
            
    
        };
        this.handleChange = this.handleChange.bind(this);
    }
    componentDidMount(tag) {
        this.setState({
            data: 'api placeholder',
           // tags: tag
        
            
        });
        
        // this.refs.search.focus();
    }
    handleChange() {
        this.setState({
            searchString: this.refs.search.value,
            // searchTagString: this.search.value
            
        });
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!