Category «React.js»

How to test React components with form elements

I’ve been teaching myself how to write tests for React app. It seems that Enzyme is the de facto standard for it. Here is what I’ve learned for testing components with form elements (e.g. <input />). Setting up First of all, install the modules. npm install –save enzyme enzyme-adapter-react-16 NOTE: It depends on the version …

How to plan a React.js app development

Draw a component treemap with basic component structures The first step to take is to draw a rough idea as to how the whole app will look like. Typically, you either… get a design plan from your client or designer. Or, develop a design plan by yourself Based on the design, you are going to …