Professional Documents
Culture Documents
This problem statement is to test the ability of the user to go through the
basics of React frontend framework and build the below UX in the same
CHALLENGE
R E ACT GRI D SYST E M
Create the below wireframe using the concept of react components and state.
The grid should have the as many rows as entered in no. of rows and each row
should have as many number of columns as specified in the column string.
Components
1. Input Boxes (4 in total, Example values correspond to above output for grid)
1.1. HTML5 input for No. of Row in the grid — e.g. “2”
1.2. HTML5 Input for Columns string - E.g. “3,2” Implies first row 3 boxes and
second row 2 boxes
1.3. HTML5 input for space between columns in pixels - E.g “8px”
3. Row Component -> displays as many boxes as specified in the column string
value
<App>
<Input name=“no-of-rows” />
<Input name=“columns-string />
<Input name=“gutter-row” />
<Input name=“gutter-col” />
<br />
<Row>
<Box />
<Box />
<Box />
</Row>
<Row>
<Box />
<Box />
</Row>
</App>
Event Handlers
1. https://reactjs.org/docs/hello-world.html
2. https://reactjs.org/docs/rendering-elements.html
3. https://reactjs.org/docs/state-and-lifecycle.html
4. https://reactjs.org/docs/handling-events.html
Additional Points