GithubHelp home page GithubHelp logo

Comments (8)

Dranaxel avatar Dranaxel commented on April 25, 2024 1

I finally fixed it. I added import React from 'react'; in src/App.js

from react.

sechi747 avatar sechi747 commented on April 25, 2024

Same for me. And it could work on codesandbox
image

from react.

sebolio avatar sebolio commented on April 25, 2024

it also doesn't work when downloading and runing with npm start (after, of course, npm i)

image

from react.

Antoniomora95 avatar Antoniomora95 commented on April 25, 2024

@sebolio try to do this
import react
import React, { useState } from 'react';

and then, use react fragment this way

<React.Fragment> <div className="status">{status}</div> <div className="board-row"> <Square value={squares[0]} onSquareClick={() => handleClick(0)} /> <Square value={squares[1]} onSquareClick={() => handleClick(1)} /> <Square value={squares[2]} onSquareClick={() => handleClick(2)} /> </div> </React.Fragment>

not sure why it fails but looks to be related with the react version

from react.

elidata-test avatar elidata-test commented on April 25, 2024

from react.

Dranaxel avatar Dranaxel commented on April 25, 2024

I'm encountering the same error as @sebolio on windows 10 - Debian 10 on WSL - node v19.8.1

@Antoniomora95 where are we supposed to add the line import React, { useState } from 'react';in ?

In index.js I get:
image

In app.js:
image

from react.

strato67 avatar strato67 commented on April 25, 2024

Was taking a look at react.dev, looks like it attempts to reach the Sandpack bundler assets through the CDN request URL: https://sandpack-cdn-staging.blazingly.io/...

CodeSandbox makes a request to Sandpack bundler through https://codesandbox.io/...

Check if your firewall blocks the CDN link by any chance?

from react.

gaearon avatar gaearon commented on April 25, 2024

Fixed this: #26429 (comment).

As for this (#26429 (comment)), I don't know what we can do here — if your internet access is blocked, that's going to be a problem.

from react.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.