React for Meteor Developers. What is React?
We'll see how to handle conditional rendering of input fields for editing, as well as how to make changes when a single field changes as well as when all fields change. When our application deals with long lists of data, managing the process of editing that data can be a pain, both for us and our users. In some cases, the data in our lists is tabular, meaning our data more or less mimics tables or fields in our database. Building Your Second React.js App — Learning New Stuff. Building Your Second React.js App Getting into more advanced features This is the second post in a series of tutorials on React.js.
The Results component also has its own children called ResultItem (yellow). Getting Started with Meteor, React, and React Router. React.js and Meteor.js are great technologies for creating apps for the modern web.
A recently announced feature with Meteor 1.2 is official React support. This means developers can now use React for handling client views without even needing to use Blaze or template files. I have spent a lot of time in the past few weeks learning React and using it in Meteor. Adding additional libraries for React can be troublesome if you aren't familar with the Meteor stack. Dynamic Fields Using Data in React. What we're going to learn In this snippet, we're going to learn how to leverage reactive data in Meteor to generate DOM elements in Meteor.
We'll learn about wiring up a set of React components to our database, allowing us to easily generate new DOM elements by storing placeholder data. Forms are tricky. Building a Blog with React. What we're going to learn In this recipe, we'll work with HD Buff, a curated video streaming service to create a blog for their website using React.
We'll see how to create a simple admin area, retrieve posts, and even handle things like Markdown directly from our React components! Pre-Written Code Heads up: this recipe relies on some code that has been pre-written for you, available in the recipe’s repository on GitHub. During this recipe, our focus will only be on implementing a simple blog using React. Additional Packages This recipe relies on several other packages that come as part of Base, the boilerplate kit used here on The Meteor Chef. Spencer Dixon - Test Driven React Tutorial. Testing is an important part of the development cycle.
Let's get started! Setting Up Webpack. Meteor + React: Hello World. Dynamic Fields Using Data in React. How we Redux — Part 1 (Introduction) — Modern User Interfaces. How we Redux — Part 1 (Introduction) For anyone new to React, Flux and other buzzwords, today I wanted to explain how we implement Redux, a certain flavor of Flux architecture, in MeteorJS.
Over the past few weeks, the Meteor community has seen a surge of developers replacing the previous view layer, Blaze, which was predominantly “reactive” templating to React, JSX, and all the trinkets the React community has provided. If you want some insight into Templating vs. JSX, you can read my blog post introducing the change to JSX here. This blog post will be a series, this post being an introduction to high level concepts of Redux. Enter Redux If you want some more info on Redux, check this blog post by Dan Abramov here. One thing you’ll notice about Redux immediately is the “single state atom”. Interacting with your state this way allows your code to be more straightforward and can introduce some really cool concepts like time-travel debugging and reproducible error-reporting.
A production-ready realtime SaaS with webpack. A production-ready realtime SaaS with webpack I’m a huge fan of Meteor.
It socketizes everything, transpiles your styles, and gives you a big chunk of code to push to a server. Sometimes though, you need something more flexible. Like any standard Saas, I needed a small landing page I could serve from a CDN, a portal that offered a realtime websocket experience, and an easy path to scale both vertically and horizontally. The end result is something I call Meatier, which I open sourced on github: The package solves a lot of problems (JWT authentication & authorization, scaling sockets, using redux as a client-side cache, storing socket state in redux, optimistic & realtime database updates, etc.) but for this entry, I decided to focus on webpack.
A Reusable State Container with Meteor & React. A Reusable State Container with Meteor & React Today I’m going to show off a little component you can make to serve as a nice state container.
We’ll mix the reactivity of Meteor and the components of React to build a predictable user interface. Build and publish React Native apps without installing Xcode. A journey into Reactive User Interfaces 101. A journey into Reactive User Interfaces 101 Okay. Before we start, let’s identify who this post is for by sending out a quick spec: By the product spec, whenever a user has a role of “Administrator” their profile picture must be outlined in a blue color. If the user has a different role, remove that outline and add this blue color. If the user doesn’t have a role, return their outline to the normal gray color. Now as programmers, when we hear product specs like this we immediately start thinking of the WHO, WHAT, and HOW surrounding this. If your first inclination was to use jQuery to find the user profile on the DOM, check if it had a class, remove said class and add a new class…this post is for you.
Now, don’t get me wrong. What is a Reactive User Interface? Reactive User Interfaces are a declarative way of expressing your app’s visual representation of DATA. Okay, let’s implement the spec. Building Multi-Platform Native Apps with Meteor - Tom Goldenberg.