Questions tagged [codesandbox]

Codesandbox.io is an open-source online code editor supporting vanilla JS, Vue.js, Angular.js, React.js, and Preact.js. DO NOT use this tag just because your code is hosted on CodeSandbox, and your problem is otherwise unrelated to the CodeSandbox site.

276 questions
-1
votes
2 answers

React/Codesandbox, mapping over array results in .map is not a function

I'm working on a small react project, and I'm trying to map over an array, and display the names (in react). I've been trying to find a solution to this error (.map is not a function), and the only suggestion I found was adding the index as a key.…
dil-emma
  • 11
  • 1
-1
votes
2 answers

A cross-origin error was thrown problem with Codesandbox.io

I have "A cross-origin error was thrown" Error in Codesanbox.io when i tried to execute this code. please what can i do to go over ? I'm using Create-react-app with codesanbox.io import React from "react"; import ReactDOM from "react-dom"; import…
Tedajo Philippe
  • 400
  • 5
  • 20
-1
votes
1 answer

Make Search Box Functional

I'm doing a map project in React and using the google-maps-react api. I am able to type characters in the search box, but it doesn't filter my list or markers. How can I make that work? Here's the code for my App.js. I have the updateQuery which…
Jerome
  • 9
  • 4
-2
votes
1 answer

Vue .env variable in codesandbox

how can i use .env variable in Codesandbox ? For now i've this error when using a .env file with process.env : 'process' is not defined - eslint I've try to declare process to true in a .eslintrc file :…
David
  • 75
  • 1
  • 1
  • 5
-2
votes
2 answers

Does Codesandbox,io remove the public directory from REACT apps & Why does it work without it?

I have been working with codesandbox.io and react and updating github from codesandbox. Today I tried to pull it down locally onto my machine (and install it) and work on it and realized two things. It didn't work There was no public directory in…
Paul A
  • 387
  • 3
  • 13
-2
votes
1 answer

Why does codesandbox.io log the eventual state of my array?

I was sure this expression const arr = [1,2,3] console.log(arr) arr.push(4) Should return [1,2,3]. Actually, if write it in the browser console it'll return what expected. But I accidentally open codesandbox and write the same code there and I got…
Alex Park
  • 651
  • 8
  • 15
1 2 3
18
19