React Welcome Project with Login
react-welcome's Introduction
react-welcome's People
Forkers
nguyenchilong mnovakovich viniarruda ktmcodelabs vladberg darmawan01 jadeng24 t-amine guljarpd muralihamsa lkjx77 vampyrian garrysrevenge luis2906 dpchami pikmr saiminajagi grana69 mvegap erka2010 haitham-baklouti ronak16 ahmad-noor nandiniicm boyskylake dheasyifakh elan4u gosaeng sunil36broman faizanali1999 obyslink rusli-nasir agapiatom mustafa-ijaz al0kdash abhishekspatil barenpasaribu hamzafaisaljarral nfouka hmzaabasi ouadhi ycourses depgit lewy263 knoppixmeister diegoglez098 dentonya avantika-dixit duaboolareact-welcome's Issues
json error
×
Unhandled Rejection (SyntaxError): Unexpected token < in JSON at position 0
(anonymous function)
D:/xampp/htdocs/newreact-reactjs/src/PostData.js:13
10 | method: 'POST',
11 | body: JSON.stringify(userData)
12 | })
13 | .then((response) => response.json())
14 | .then((response) => {
15 | resolve(response);
16 | })
View compiled
This screen is visible only in development. It will not appear if the app crashes in production.
Open your browser’s developer console to further inspect this error.
code...
export function PostData(type, userData) {
//let BaseURL = 'https://api.thewallscript.com/restful/';
//let BaseURL = 'http://localhost/PHP-Slim-Restful/api/';
let BaseURL = 'http://localhost:3000/api/';
return new Promise((resolve, reject) =>{
fetch(BaseURL+type, {
method: 'POST',
body: JSON.stringify(userData)
})
.then((response) => response.json())
.then((response) => {
resolve(response);
})
.catch((error) => {
reject(error);
});
});
}
MISSING PHP FILES
can you upload the hte php backend files including the "config.php" file and the file that defines the function "apiToken()"
i have gaps in your implementation without all the php files
PHP Files
can you upload the hte php backend files including the "config.php" file and the file that defines the function "apiToken()"
i have gaps in your implementation without all the php files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.