September 2018
Intermediate to advanced
302 pages
7h 17m
English
The next component that you will often use is the Image component. Let's extend our task list with the React logo. After each task, we will show a .png image of the React logo:
// Chapter 2_View patterns/ Example 5/src /Task.js// ...<Image // styles just to make it smaller in the example style={{width: 100, height: 100}} source={require("./react.png")}/>// ...
Please note that not every image type is supported right now. For instance, SVG images will need a separate library to work.
Read now
Unlock full access