react-tabs: Accessible React tab component

react-tabs: Accessible React tab component

  • This is a zero-based index, so first tab is , second tab is , …

    By default only the current active tab will be rendered to DOM.

  • Provide a custom class name for the active tab.
  • Provide a custom class name for the active tab panel.
  • Also a disabled class name will be added (see )

    Provide a custom class name for the active tab.

  • Provide a custom class name for the active tab panel.

react-tabs – React tabs component
Continue reading “react-tabs: Accessible React tab component”

Building Small Apps with React

Building Small Apps with React  #reactjs #javascript #AppDev #programming #coding

  • Enter Cerebro: a cross platform extensible electron app that provides the perfect tools to build something small but useful with React.
  • Now we can do a bit of setup:

    Our plugin, cerebro-weather, will allow users to search for a city and then show a concise preview of the weather conditions of that city if it exists.

  • Create an file with the following:

    This function makes an initial request to the API to search for a given city.

  • We convert this response to JSON and retrieve the weather details for the first location with the location’s , which is its unique identifier and the only actual way to retrieve weather data from the API.
  • This gets the weather data with our API function, and displays the first consolidated weather report.

Guide developers that newly learned React to build a small but useful app with Cerebro
Continue reading “Building Small Apps with React”

react-native-aws-cognito

React Native module for authentication with #AWS Cognito.

  • Motivation to work on this module (and so, best use case) was having a secure, simple and cheap user management system that can access AWS IoT devices.
  • It supports Enhanced (Simplified) Authflow as described on are some limitations in this module:

    Sample code for retrieving signed url and using it to connect with AWS IoT using MQTT over Websocket:

React Native module for authenticating with AWS Cognito.
Continue reading “react-native-aws-cognito”

Building Small Apps with React

Building Small Apps with React - Cerebro  #reactjs #javascript #AppDev #programming

  • Enter Cerebro: a cross platform extensible electron app that provides the perfect tools to build something small but useful with React.
  • Now we can do a bit of setup:

    Our plugin, cerebro-weather, will allow users to search for a city and then show a concise preview of the weather conditions of that city if it exists.

  • Create an file with the following:

    This function makes an initial request to the API to search for a given city.

  • We convert this response to JSON and retrieve the weather details for the first location with the location’s , which is its unique identifier and the only actual way to retrieve weather data from the API.
  • This gets the weather data with our API function, and displays the first consolidated weather report.

Guide developers that newly learned React to build a small but useful app with Cerebro
Continue reading “Building Small Apps with React”

koistya/declarative-routes.md Last active Jul 26, 2016

Declarative routes example with React and Relay  #reactjs #relay #javascript

  • exports = [ { path : ” /tasks ” , queries : { viewer : () => Relay.QL ` query { viewer } ` , tasks : () => Relay.QL ` query { tasks } ` }, async action ({ params }) { const [ Component , props ] = await Promise .
  • resolve (routes, { path : ‘ /tasks/123 ‘ }).
  • But if you’re planning to use Relay, it might be a better idea to use declarative routes instead.
  • map ( key => new Promise ( resolve => { const query = Relay .
  • Custom Routing solution with React and Relay

Read the full article, click here.


@koistya: “Declarative routes example with React and Relay #reactjs #relay #javascript”


It shows how to implement Router.resolve(routes, context) method with just a few lines of code,
which in combination with history npm module (handles client-side navigation) can be a good
routing solution for many React applications.


koistya/declarative-routes.md Last active Jul 26, 2016