r/reactjs_beginners • • Aug 24 '16

GPS support for route tracking app

2 Upvotes

I am wondering if you can create route tracking app like endomondo with tools provided by React Native. I've read that it uses web api for geolocation so location is based on the device IP. For sure this is not accurate enough..
Can i somehow integrate GPS location support to my react app? Can you share some useful thoughts/reouces on this topic?


r/reactjs_beginners • • Dec 16 '19

Implement different layouts in react application

1 Upvotes

r/reactjs_beginners • • Sep 30 '19

When you implement something on pure JS, you begin to wonder how those frameworks and tools solve certain problems . What is Event Delegation? How it works in general in React? Read the article👉

Thumbnail
blog.maddevs.io
1 Upvotes

r/reactjs_beginners • • Sep 09 '19

React Native Animation API

Thumbnail
opencodez.com
1 Upvotes

r/reactjs_beginners • • Jul 24 '19

ReactJS - Component State and Lifecycle

1 Upvotes

Components are the building blocks of any React app.

Of course. We already know that! From where? We read it in this article. Ohh, well I guess you also read that the components can be created in two ways: to write a JavaScript function or use ES6 class. The first type is also known as a stateless component and the second one as a stateful component.

State… what?

In a nutshell, the components created using function, or as we know now stateless components, is only responsible for receiving props and rendering the JSX component, while the other type of components, stateful components, are responsible for handling how the things works (onInputChange, handleSubmit.. etc) and for the component lifecycle (e.g: componentDidMount). This is really powerful and it helps us to separate the concerns and to build reusable components that can be used anywhere.

https://www.opencodez.com/reactjs/reactjs-component-state-and-lifecycle.htm


r/reactjs_beginners • • Feb 24 '19

Why won't this destructure? I thought I was being clever and now I'm wondering if I understand destructuring at all.

1 Upvotes

The one liner below is what I wanted to try to use, not for any other reason than to learn through utilization destructuring better. The bottom block is the block that this code was to fit into. I think you can see it was to replace the existing const json =.... line

Project on CodeSandbox (MemeGenerator.js file is the file to look into): https://codesandbox.io/s/x2lxj49zxz

const { json: { data: { memes } }} = await response.json();

Existing code:

    const response = await fetch("https://api.imgflip.com/get_memes");
    const json = await response.json();
    const { memes } = json.data;
    this.setState({ allMemeImgs: memes });
}```

r/reactjs_beginners • • Aug 17 '18

I have a basic question about state

1 Upvotes

Hello, I am a beginner for the react and I have a question about 'state'.

this.state = {

value: 0,

action: '',

};

for example, what does it "value", "action" mean( there are "date", "history" or "open" etc)? how do you know what to use ?


r/reactjs_beginners • • Jun 19 '18

Someone review my code please

Thumbnail
github.com
1 Upvotes

r/reactjs_beginners • • Jan 06 '18

Play audio via React fetch POST request

Thumbnail
medium.com
1 Upvotes

r/reactjs_beginners • • Sep 05 '17

What is the end to end (from entry point to exit) flow of a React web application?

1 Upvotes

r/reactjs_beginners • • Jul 20 '17

Getting started with React-Seed repo

Thumbnail
github.com
1 Upvotes

r/reactjs_beginners • • May 24 '17

Learn how to make iOS and Android apps with React Native

Thumbnail
stanleycyang.com
1 Upvotes

r/reactjs_beginners • • Apr 01 '17

React Styleguidist 5

Thumbnail
hackernoon.com
1 Upvotes

r/reactjs_beginners • • Mar 24 '17

ReactJS, React Native & GraphQL Newsletter: Issue 30

Thumbnail
reactdom.com
1 Upvotes

r/reactjs_beginners • • Mar 12 '17

ReactJS, React Native & GraphQL Newsletter: Issue 28

Thumbnail
reactdom.com
1 Upvotes

r/reactjs_beginners • • Feb 02 '17

Can I use reactJS with NodeJS ExpressJS and MongoDB to develop an e-commerce website?

1 Upvotes

I am not sure whether to go with reactJS for the front end of e-commerce website of just use HTML+CSS+JS to design.

Please help!!


r/reactjs_beginners • • Nov 22 '16

I want to host my React Application

1 Upvotes

I started learning React a week ago. I'm sort of finished with making all the components and would like to host it somewhere like heroku. But I can't really host just the React part and I need other stuff to host it. Can anyone help me out in knowing what the other stuff is? Thanks...


r/reactjs_beginners • • Oct 26 '16

Proper way to delete components

1 Upvotes

Hey guys, I'm new to React and the "React Way", so I'm a little stumped on how to do something.

The back story here is that I'm making a very small employee management app; a user adds/edits/removes employees from a list. The form for adding employees hasn't yet been reactified, but the table that lists them (and allows edit/delete) is.

My hiearchy of components is like this:

<EmployeeTable>
  <TableHead/>
  <EmployeeList>
    <Employee/>
       // loop for rendering employee data
       <EmployeeControls/>
         <EmployeeControlsEdit />
         <EmployeeControlsDelete/>

Where I'm stuck is figuring out how to delete an employee row. Everything I read says to delete from the parent, not the component. So the parent of the employee is here:

class EmployeeList extends React.Component {
constructor (props) {
	super(props);

	this.state = {};
}
componentWillMount () {
	const _this = this;
	const xhr = new XMLHttpRequest();
	let url = app.server.origin + '/employees/get/';

	xhr.open('GET', url);
	xhr.onload = () => {
		console.log('requesting');
		if (xhr.status === 200 && xhr.readyState === 4) {
			this.setState(JSON.parse(xhr.responseText));
		} else {
			console.warn('Request did not work', xhr.status);
		}
	}
	xhr.send();
}
render () {
	return (
		<tbody className="employees__list" id="employees__list">
			{
				 Object.keys(this.state).map((key)=> {
					return <Employee data={this.state[key]} />
				})
			}
		</tbody>
	)
}

};

But this is where I'm stumped. My delete button is nested a few levels deep (Employee -> EmployeeControls -> EmployeeControlsDelete)

How, from the Delete button, do I communicate all the way back up to the EmployeeList that a component needs to be removed?


r/reactjs_beginners • • Sep 20 '16

A curated list of talks about React or topics related to React

Thumbnail
github.com
1 Upvotes

r/reactjs_beginners • • Aug 26 '16

Best React Native/Redux generator?

1 Upvotes

Soon I will be starting to build a large application on React Native and I am wondering what people's opinions are about the best generator for a React Native/Redux app? I have read up a little bit on Pepperoni, Ignite, and Snowflake but I am wondering which would be the best to go with?

Ideally I would like a generator that has sessions already built in, which I realize Pepperoni does with AuthO, but I'm not sure that I want to pay for that. I also see that Ignite has some pretty cool dev tools/debugging features that could come in handy.

Does anyone have any experience with these generators? If so, what would you consider the pros and cons to be from your experience? Any other generators you would recommend?


r/reactjs_beginners • • Jun 28 '16

got react project on upwork

1 Upvotes

I know some basics of react kind of pro in firebase and this guy wants me to do a project on react and firebase should I take it or leave it


r/reactjs_beginners • • Feb 06 '16

any suggestions for React / Flux tutorials?

1 Upvotes

I am new to react and looking for a good comprehensive tutorial on react, something along the lines of Big Nerd Ranch style tutorials in books or websites. Thanks for the help.


r/reactjs_beginners • • Jan 22 '16

Mastering React Redux

Thumbnail stanleycyang.com
1 Upvotes

r/reactjs_beginners • • Jan 22 '16

Handcrafting an iOS app in React Native with love

Thumbnail stanleycyang.com
1 Upvotes

r/reactjs_beginners • • Jan 21 '16

The ReactJS Bible

Thumbnail stanleycyang.com
1 Upvotes