Development Driven Testing (ReactJS) – Ahsan Naveed – Medium

  • Development Driven Testing (ReactJS)Apparently it is a thing — while constructing UI’s with React we need to have components before we test the expected UI behavior.
  • There is still some TDD involved as you develop components you want to make sure that the HOC’s you are developing/engineering works the way you want them to work.
  • The normal workflow of structuring these components will be, to have the site running on localhost:port and thinking the code as you go.
  • If you would like to implement feature x in your web application it would be a good idea to see if there exists a package that can x-ify your app for you.Finally, would like to share the article below: the article above, the most important advice is to construct the…
  • My personal advice extends the advice above i.e. implement static components and then write tests to validate their UI behavior and then do whatever the senior developer says.

Apparently it is a thing — while constructing UI’s with React we need to have components before we test the expected UI behavior. There is still some TDD involved as you develop components you want…

Apparently it is a thing — while constructing UI’s with React we need to have components before we test the expected UI behavior. There is still some TDD involved as you develop components you want to make sure that the HOC’s you are developing/engineering works the way you want them to work. The normal workflow of structuring these components will be, to have the site running on localhost:port and thinking the code as you go. At this stage there are mostly performance concerns you want to make sure you code takes advantage of all the latest and greatest practices that come bundled with ESx (x will keep changing in the ever-expanding world of ECMA script) and React 16.

Using UI libraries can actually give a boost to over-all development workflow. Having worked with React for over three months (not something to brag about, but I thought — I should put it out there) I came to realize that there are a ton of packages that can do the heavy lifting for you. If you would like to implement feature x in your web application it would be a good idea to see if there exists a package that can x-ify your app for you.

Finally, would like to share the article below: https://reactjs.org/docs/thinking-in-react.html

In the article above, the most important advice is to construct the static components with minimal user interaction and then implement the rest of the code. My personal advice extends the advice above i.e….

Development Driven Testing (ReactJS) – Ahsan Naveed – Medium