Created
January 23, 2018 10:22
-
-
Save rodesousa/e3e99e29e8be8cfdbc497344af1f005f to your computer and use it in GitHub Desktop.
#reactjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component, Fragment } from 'react'; | |
| import logo from './logo.svg'; | |
| import './App.css'; | |
| import './msg.css'; | |
| var test_json = {"merge_request":[{"title":"WIP: Makefile V2","url":"https://gitlab.com/ritmx/infrastructure/provisioning/merge_requests/169"},{"title":"WIP: Add DNS Managed Zone for ritmx.com.","url":"https://gitlab.com/ritmx/infrastructure/provisioning/merge_requests/159"},{"title":"Suppression du répertoire /temp lors du lancement du service tomcat","url":"https://gitlab.com/ritmx/infrastructure/ansible-skeleton/merge_requests/8"}]}; | |
| class App extends Component { | |
| constructor(props){ | |
| super(props); | |
| this.state = { | |
| merge_request: test_json | |
| } | |
| } | |
| render(){ | |
| const numbers = [1, 2, 3, 4, 5]; | |
| var test = this.state.merge_request.merge_request; | |
| var fuck = test.map((j) => <div>{j.title}</div>); | |
| return ( | |
| <div> | |
| {fuck} | |
| </div> | |
| ) | |
| } | |
| } | |
| export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment