JSX is an open source programming language, or an AltJS with classes and static types. The source code is compiled into JavaScript which is highly optimized.
4
votes
0answers
24 views
Unit tests for React component to submit an input form with validation
I'm very new to front-end/unit testing and have been having a difficult time understanding the point altogether, but I managed to push my way through testing literally everything I could possibly ...
0
votes
0answers
33 views
Conway's game of life in HTML5, Javascript and React.js
In my attempt to learn React.js library I wrote a simple game of life. Hereby here humbly I request for review of my code, especially of my usage of react.js. What should I improve, what should I ...
1
vote
1answer
65 views
Login page without header/footer bars
I'm creating an app where the login page doesn't have the header/footer bars that the pages, after being logged in, would have. I've created an example that works, but I'm unsure if I am using the ...
0
votes
0answers
25 views
React.js components for Players and Playlists
I have two classes in React that have their own methods but also share the exact same methods as seen below. I can't seperate them in to another file and do ...
1
vote
0answers
97 views
Small camera app in react-native for Android
I'd like you to help me review a small camera app. Most of the code comes from here; I just changed it a little bit.
I started dabbling with react-native for the first time. It seems kinda neat but I ...
1
vote
0answers
194 views
Simple notes application in React.JS
I'm new to React.js and I've written a simple notes application as my first React program. I would like to know if it is idiomatic React code.
List.js
...
4
votes
0answers
109 views
React component to list TV shows from a JSON result
I'm trying to rewrite my old project in Reactjs. As I am a beginner and this is my first app, I need some assistance in understanding what is the best way to do this in the React way and how I can ...
1
vote
2answers
55 views
Component state delegation with React
I'm currently reviewing some different ways to have reusable components enforcing both most of the style & logic. The use case is a generic MainList with ...
0
votes
1answer
64 views
sportsRunning and sportsWalking
There are two functions, sportsRunning and sportsWalking, that will render different text. For this, I am using an ...
3
votes
1answer
183 views
Building a multi-panel display with React and Bootstrap
The exercise is part of a React course in which I'm currently enrolled.
Description:
The way it shall look on desktop-screen:
How it shall look on mobile:
Here's my solution:
HTML
...
1
vote
0answers
189 views
Simple React calculator - child/parent component communication
Does anyone have any critique of these ~180 lines of React, specifically this?
...
2
votes
0answers
154 views
React functional components and JS closures to render lists of users
I'm currently working on a project with React and Redux. I try (successfully so far) to write only stateless functional components. My code now starts having a lot of closures, especially when ...
2
votes
0answers
591 views
ReactJs stateWrapper for nested state objects
I made a simple state wrapper for a react project I am working on, so I can keep my state at the top component but reason about it at a lower class level.
The example below is very simple, but it ...
1
vote
2answers
208 views
Static single page app with routing
I'm currently trying to write an app with Cordova and ReactJS. I haven't used ReactJS before, so I'm very confused by the mixed usage of Babel, JavaScript and JSX. I try to use JSX where I can because ...
3
votes
0answers
31 views
A 'top 100' app that displays list of users ordered in two different ways
I built a small app that gets data from a remote json file and displays it in a list of users. In each list item, an image of the user, their name, and their points tallies are shown.
The list is ...
5
votes
1answer
545 views
ReactJS app to add and validate items to a list
I wrote a sample app based on the ReactJS tutorial, and I would like some thoughts on how idiomatic this code is. Unfortunately there's no ReactJS integration with Stackoverflow snippets, but I do ...