react

Displaying 1 - 2 of 2

Creating forms with callbacks in React+Redux

In React, you have some simple/dumb components which are just html and other components and maybe render some values which are passed in. It becomes a little trickier when you want to add some functionality to the component, such as form elements - inputs and buttons and submit actions. What I mean by "forms with callbacks" is that you want to execute some JavaScript and also change state in your React app, but do so without giving direct access to state to the component. Instead here's one way to do it.

  1. Draw out the HTML (don't worry about using React components yet) in JSX
  2. ...

Developer interview: What is AngularJS and What about Angular 2?

My friend Chau is a long-time Microsoft / .Net developer who has recently switched his company's focus to single-page apps (SPAs), especially web apps built using Angular. He's preparing to use Angular 2.0 now. I asked him to explain Angular a bit.

What is Angular?

A popular (frontend web) UI framework for single page applications (SPA) from Google.

What does it replace? There are a lot of JavaScript frameworks out there nowadays, so why this one?

We started out using Knockout for 2-way binding mostly but it didn't take care of anything outside of that....