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

168
Views
Adding data on a .jsx in REACT js

I work on my CV web and I do it on react. The web site works very well but I try now to create thanks to a web admin page a page where I can add experiences when I desir. The issue is the following sentence: I can create data but the data when I refresh the webpage on localhost disappears. as is : it desappers to be : need that this new experience be created and written on the constante. Is it normal ? My data is in a constant on my IDE and I call it on all my web page (bdd.jsx). I use a button whom defined the json structure I need thanks to a form and data stocked on useState and then I use the push method to do it. It works but data disappears when i refresh... :(

Maybe I'm wrong somewhere maybe it's easier in the otherway so thank you for your help.. Cyprien

**bdd.jsx**
const bdd = [
{
{
"id":1,
"nomFonction": "Consulting",
"nomEntreprise":"dogs ...",

},
{
"id":2,
"nomFonction": "Consulting",
"nomEntreprise":"dogs ...",

}
]


**page.js**
const [function,setFunction] = useState('');
const [company,setCompany] = useState('');

const handleExperiences = () => {
let value = 
{
"id":bdd.length,
"nomFonction":function,
"nomEntreprise":company,
}
bdd.push(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!