Supercharge Your React Native Development With React-Native-Debugger

  • Supercharge Your React Native Development With React-Native-DebuggerReact Native Debugger App IconThere will always be bugs — we will never run out of them.
  • There is struggle and get frustated debugging, and then there is chilling debugging where there is a tool to help you save time and effort.As the wise Edsger Dijkstra once saidIf debugging is the process of removing software bugs, then programming must be the process of putting them in.What is React…
  • It combines 3 very important debugging tools to make your development life cycle awesome.Screenshot of React Native Debugger zero stateReact Developer Tools lets you inspect the React component hierarchy, including component props and state.
  • It gives you the ability to inspect/change elements in your react native app just like you would in your web browser for webpagesRedux DevTools lets you inspect every state and action payload change.
  • When you print to the console with console.log in your code or use the debugger statement, you can see them in your Chrome devtools.React Native Debugger brings all these tools together and makes your development life a whole lot easier, trust me.

There will always be bugs — we will never run out of them. There is struggle and get frustated debugging, and then there is chilling debugging where there is a tool to help you save time and effort…
Continue reading “Supercharge Your React Native Development With React-Native-Debugger”

Techniques for decomposing React components – DailyJS – Medium

Techniques for decomposing #ReactJS components:  by @Dvtng #JavaScript

  • Here are three techniques to get you started, from the simplest to most advanced.Split the render() methodThis is the most obvious technique to apply: when a component renders too many elements, splitting those elements into logical sub-components is an easy way to simplify.A common and quick way to split the render() method is to create additional “sub-render” methods on the same class:While this can have its place, it is not a true decomposition of the component itself.
  • As a bonus, when React’s new Fiber architecture arrives, the smaller units will allow it to perform incremental rendering more effectively.Templatize components by passing React elements as propsIf a component is becoming too complex due to multiple variations or configurations, consider turning the component into a simple “template” component with one or more open “slots”.
  • Utilise the ability of React to pass elements, not just data, as props, to create a flexible template component.Another component can then have the sole responsibility of figuring out what to fill the metadata and actions slots with.Keep in mind that in JSX, anything that’s between the opening and closing tags of a component is passed as the special children prop.
  • In the comments example, this would likely be the text of the comment itself.Extract common aspects into higher-order componentsComponents can often become polluted by cross-cutting concerns that aren’t directly related to its main purpose.Suppose you wanted to send analytics data whenever a link in a Document component is clicked.
  • The obvious solution might be to add code to Document’s componentDidMount and componentWillUnmount lifecycle methods, like so:There are a few problems with this:The component now has an extra concern that obscures its main purpose: displaying a document.If the component has additional logic in those lifecycle methods, the analytics code also becomes obscured.The analytics code is not reusable.Refactoring the component is made harder, as you’d have to work around the analytics code.Decomposition of aspects such as this one can be done using higher-order components (HOCs).

React components have a lot of power and flexibility. With so many tools at your disposal, it is incredibly easy for components to grow over time, become bloated and do too much. As with any other…
Continue reading “Techniques for decomposing React components – DailyJS – Medium”

react-d3-HOC-axis

Does it still count as a HOC even if you're wrapping a function in a Component? #reactjs

  • You can also link to another Pen and we’ll pull the CSS from that Pen and include it.
  • You can also add another Pen and it will pull the CSS from it.
  • You can also link to another Pen and we’ll pull the JavaScript from that Pen and include it.
  • You can apply CSS to your Pen from any stylesheet on the web.
  • HTML preprocessors can make writing HTML more powerful or convenient.


Continue reading “react-d3-HOC-axis”

React.js components formodular charting and data visualization

Victory: #ReactJS components for modular charting and data visualization

  • Victory is a trademark of Formidable Labs, Inc.
  • Extend the Victory experience on Android and iOS platforms with an identical API. npm install victory-native
  • We deploy a mixture of consulting, staff augmentation, and training to level up teams and solve engineering problems.
  • Formidable is a Seattle-based consultancy and open-source shop, with an emphasis on Node.js and React.js.
  • Get in touch or view our Careers Page .

A collection of composable React components for building interactive data visualizations.
Continue reading “React.js components formodular charting and data visualization”

Announcing the Release of Spectacle Editor

  • See a sample of what you can do with Spectacle Editor in the examples linked below.
  • Easily import images to your presentation or add background images to your slides.
  • Add interesting visual touches to your presentations with cool transition effects, or keep it seamless with a simple transitions.
  • We’d love to have more of the Open Source community contribute to Spectacle Editor.
  • Formidable is pleased to announce the release of Spectacle Editor, an open souce presentation editor built with Electron on top of Spectacle , our library for authoring interactive presentations in ReactJS. We collaborated with Plotly on this project, and it features seamless Plotly integration, including the ability to embed Plotly charts, publish presentations to plot.ly, and work with Plotly on-premise installations.

React.js consultants. JavaScript leaders and OSS innovators. Formidable builds the modern web. Challenge us with your next big problem.
Continue reading “Announcing the Release of Spectacle Editor”

METAR API with React

Fun with #metar humanization #reactjs and a free API. To be continued with some #dataviz

  • You can also link to another Pen and we’ll pull the CSS from that Pen and include it.
  • You can also add another Pen and it will pull the CSS from it.
  • You can also link to another Pen and we’ll pull the JavaScript from that Pen and include it.
  • You can apply CSS to your Pen from any stylesheet on the web.
  • Just put a URL to it and we’ll apply it, in the order you have them, before the CSS in the Pen itself.

Read the full article, click here.


@jufa: “Fun with #metar humanization #reactjs and a free API. To be continued with some #dataviz”



METAR API with React