Congratulations on 🌟50,000🌟 stars, @reactnative! Here’s to the next 50,000 🥂

  • Another great way to learn more about the components and APIs included with React Native is to read their source.
  • The React Native documentation only discusses the components, APIs and topics specific to React Native (React on iOS and Android).
  • For further documentation on the React API that is shared between React Native and React DOM, refer to the React documentation.
  • If you encounter a bug with React Native we would like to hear about it.
  • For help and questions with using React Native please make use of the resources listed in the Getting Help section.

react-native – A framework for building native apps with React.
Continue reading “Congratulations on 🌟50,000🌟 stars, @reactnative! Here’s to the next 50,000 🥂”

React and React Native [Book]

Adam Boduch's

  • Use React and React Native to build applications for desktop browsers, mobile browsers, and even as native mobile apps

    Who This Book Is For

    This book is written for any JavaScript developer—beginner or expert—who wants to start learning how to put both of Facebook’s UI libraries to work.

  • What You Will Learn

    React and React Native allow you to build cross-platform desktop and mobile applications using Facebook’s innovative UI libraries.

  • The first part shows you how to start crafting composable UIs using React, from rendering with JSX and creating reusable components through to routing and creating isomorphic applications that run on Node.
  • We then move on to showing you how to take the concepts of React and apply them to building Native UIs using React Native.
  • Split into three major sections to help organize your learning, this hands-on, code-first book will help you get up to speed with React and React Native—the UI framework that powers Netflix, Yahoo, and Facebook.

Use React and React Native to build applications for desktop browsers, mobile browsers, and even as native mobile apps About This Book Build React and React Native applications using familiar … – Selection from React and React Native [Book]
Continue reading “React and React Native [Book]”

React Native Pitfalls – Anton Kulyk – Medium

React Native Pitfalls  #reactnative #react #reactjs #reactjs

  • React Native PitfallsThere are a lot of collections of anti-patterns for React and different app’s state managers like Redux and MobX (e.g. react-bits), but I haven’t seen a lot of advises for React Native developers.
  • You can create bridges between JavaScript and native modules, enable messaging between two sides of an app, create your own components.
  • Sometimes just a few lines of native code can save you from dozens of unneeded JavaScript.Do not estimate Android iOS equallyPersonally I spend much more time on configuring iOS apps.
  • Your apps are native and that’s awesome, but Android and iOS are different platforms, with different guidelines and components.
  • So develop and test both versions in parallel.Test on a device from the day oneEmulators are nice, but use devices, especially on Android because of variety of screen sizes, OS versions is use, etc.It won’t be iOS/Android only storySometimes people pick React Native for developing an app only for one platform (yep, seriously).

There are a lot of collections of anti-patterns for React and different app’s state managers like Redux and MobX (e.g. react-bits), but I haven’t seen a lot of advises for React Native developers. In…
Continue reading “React Native Pitfalls – Anton Kulyk – Medium”

ASP.NET MVC 5 With ReactJS

#ASPNET #MVC 5 With #ReactJS by @viralJain007 cc @CsharpCorner

  • There are many popular JavaScript libraries in the market but React is the the most popular, and it has strong and large foundation and community behind it.
  • When we develop applications in MVC, we use JavaScript, jQuery, and HTML with it.
  • Now, NuGet package team has provided in-built library package for Visual Studio for MVC 4, 5 and ASP.NET Core.
  • So now, you can directly download the NuGet Package for React.js for your MVC application from npm, and use it in your application easily.
  • In this article, we learned how to use React JS in ASP NET MVC.

React is a very popular front-end library developed by Facebook. It’s basically used for handling view layer for web and mobile apps.
Continue reading “ASP.NET MVC 5 With ReactJS”

I’ve created a flexbox bootstrap like grid for #reactjs, that uses #styledcomponents and styled-system … \cc @jxnblk

  • Lightweight bootstrap like grid system for reactjs that uses flexbox.
  • Built on top of and much to:

    If like me, you still think about grids in terms of bootstrap, , , , , , and , then look no further.

  • styled-gel uses bootstrap 4’s mobile first repsonsive breakpoints which are by default:

    styled-system can be configured with styled-components to override the breakpoints and number of columns in a row with more configuration options to come.

styled-gel – Styled-components over bbc gel-grid
Continue reading “I’ve created a flexbox bootstrap like grid for #reactjs, that uses #styledcomponents and styled-system … \cc @jxnblk”

Maximizing Debuggability with Redux – LogRocket

Making #Redux apps easier to debug #reactjs #webdev via @LogRocketJS

  • By using front end logging tools like LogRocket, developers can easily understand and fix tricky bugs in production by reviewing the actions and state changes leading up to a bug.While this information is immediately useful in any Redux app, there is a lot more we can achieve by architecting an app with logging in mind.
  • When debugging issues, we can dig into this state object to see information on in-flight requests, queryCount (if we’re polling on a query), and timings.Storing this information in Redux is critical, since it puts full context on all network activity in the Redux logs.Rolling your own data fetching “framework”If you’d prefer a simpler approach, you can roll your own data fetching “framework” by simply dispatching explicit actions when querying and receiving data from the network.For example, lets say we’re building a blogging app.
  • This would then update state appropriately to:postsQuery: { url: ‘api.blog.com/posts’, isPending: true, data: […],}This example is far from thorough, but the idea is that by being explicit with Redux actions for each part of the request lifecycle, it becomes easy to debug any potential race condition or network error.Handling other sources of non-determinismIn addition to network fetching, there are lots of other sources of non-determinism that can cause bugs.
  • For example:myWebSocket.onmessage = function (event) { store.dispatch({ type: ‘BLOG_POST_UPDATE_RECEIVED’, payload: event, } }That way, when looking at the Redux logs for an error or user-reported issue, we can see all the data that was received over the websocket and, crucially, relate it in time to other redux actions and network requests.Local StorageOften, an app needs to read from local storage when it first starts up.
  • Once you get the library set up, you’ll see a new key in your Redux store called routing with information on the current router state.In addition, react-router-redux dispatches actions like @@router/LOCATION_CHANGE when its state changes.Also of note is that using react-router-redux lets you rewind router state when time-traveling in redux-devtools, since its state its state is derived from the state in Redux.A note about local vs Redux stateI don’t want to get into the debate on local vs Redux state here, but production Redux logging does change the calculus of this decision in some cases.

In my last blog post, Redux Logging in Production, I discussed one of the most important benefits of using Redux — debuggability. By using front end logging tools like LogRocket, developers can…
Continue reading “Maximizing Debuggability with Redux – LogRocket”