…using a bare-bones React boilerplate since it's well-maintained and properly documented.Making the APIs ReadyIn this section, we will bootstrap our Phoenix API-only application and add channels to update the APIs in real time. We will just be working with a feed (it will contain a title and a description), and…
…using it. About the Terminal What Is the Terminal? The terminal is an interface for you to execute text-based commands, and it gives you direct access to the underlying operating system, via a shell, on your Mac. A long time ago, before computers had graphical user interfaces (GUIs), the only…
…using an online code editor (CodePen) basic manual setup, without Node.js or npm using create-react-app full manual setup and configuration The first method demonstrates how to use an online code editor such as CodePen to set up a React app very quickly. Using this method, you'll be coding your first…
…using CodePen, an online code editor, that enables you to begin writing React code instantly.A useful side effect of using online code editors is that you can easily share your work with others via a unique URL. Anything you create can also be searched for by other developers looking for…
…using JSX. We'll be using JSX for our React components for the remainder of this tutorial series.Clearly, the lack of tools such as Babel restricts how easy it is to write React code completely from scratch. There are many other tools we could take advantage of too, such as a…
…Using Build Tools</title> </head> <body> <div id="app"></div> </body> </html>We want to be able to compile our app down to a single JavaScript file, and also make use of JSX and ES6 classes and modules. To do this, we need to install Webpack and Babel modules via npm.Let's install Babel first.…
…using React as we build a fully working app to display a gallery of movies.Learning how to build an app from scratch is a great opportunity to practise using all the key features of React whilst levelling up your development skills. All the recommended methods and best practices are followed,…
…using props allows us to customize the appearance of components by passing in data rather than hard coding it.This demonstrates the flexibility and reusability of components, and how they can be used as powerful building blocks in your React apps.Our First Component OK, let's create a component! To start with,…
…using props allows us to customize the appearance of components by passing in data rather than hard coding it.In part three we'll create our first custom component, and then add state to our app. This will allow us to easily manage the app data without being concerned about manually updating…
…using the toArray method and then passed to the callback function. Next create the Node.js API endpoint which will call the above getTag method in app.js. app.post('/gettag', function (req, res) { post.getTag(function(result){ res.send(result); }); })In the home.jsx file inside the AddPost component, create a method called getTags which will make…